mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
10 lines
453 B
TypeScript
10 lines
453 B
TypeScript
|
import Logger from '@joplin/utils/Logger';
|
||
|
|
||
|
// @joplin/lib has its own copy of the Logger class, however we want it to be
|
||
|
// initialised with the same logger instance as the calling application, so that
|
||
|
// the lib and app share the same log. This initLib() function is used for this
|
||
|
// and must be called by any "app" package that makes use of the lib package.
|
||
|
export default (globalLogger: Logger) => {
|
||
|
Logger.initializeGlobalLogger(globalLogger);
|
||
|
};
|