Exporting wrapper for loglevel (#20)

* Exporting wrapper for loglevel

* prettier
This commit is contained in:
Pavel
2021-02-13 16:13:00 +03:00
committed by GitHub
parent ceca3e5692
commit 399166efe8

View File

@ -20,3 +20,10 @@ export { SecurityTetraplet, PeerIdB58 } from './internal/commonTypes';
export * from './api';
export { Particle } from './internal/particle';
export * from './internal/builtins';
import log, { LogLevelDesc } from 'loglevel';
export const setLogLevel = (level: LogLevelDesc) => {
log.setLevel(level);
};
log.setDefaultLevel('WARN');