olympus-module
Version:
Module made by Olympus Labs for easier access to the Olympus protocol through Javascript/Typescript
23 lines (20 loc) • 382 B
text/typescript
import config from '../config';
import * as log4js from 'log4js';
log4js.configure({
appenders: {
app: {
type: 'file',
filename: 'app.' + config.chainName + '.log',
},
info: {
type: 'console',
},
},
categories: {
default: {
appenders: ['app', 'info'],
level: 'debug',
},
},
});
export let logger = log4js.getLogger();