generated from amethyst-studio/meta
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Samuel Voeller edited this page Aug 15, 2022
·
3 revisions
Module Path: https://raw.githubusercontent.com/amethyst-studio/amethyst-std/main/lib/logger/logger.ts
Versioned Path: https://raw.githubusercontent.com/amethyst-studio/amethyst-std/COMMIT_HASH/lib/logger/logger.ts
import { LoggingManager } from 'https://raw.githubusercontent.com/amethyst-studio/amethyst-std/main/lib/logger/logger.ts';
LoggerManager.configure({
definition: {
'': {
level: LoggerLevel.Trace,
location: false,
},
},
});
const logger = Logger.getLogger('definition');
logger.emit({
content: 'your main message',
context: {
optional: 'object',
}
})