smartlog/ts/index.ts

14 lines
287 B
TypeScript
Raw Normal View History

2018-01-28 03:31:06 +00:00
import * as plugins from "./smartlog.plugins";
import { Smartlog } from "./smartlog.classes.smartlog";
2016-10-15 17:00:52 +00:00
2018-01-28 03:31:06 +00:00
export { Smartlog };
2016-10-15 17:00:52 +00:00
2018-01-28 03:31:06 +00:00
let defaultLogger: Smartlog;
2016-10-15 17:00:52 +00:00
2018-01-28 03:31:06 +00:00
export const getDefaultLogger = () => {
if (!defaultLogger) {
defaultLogger = new Smartlog();
}
return defaultLogger;
};