ts-composite-logger
Advanced tools
Comparing version 1.0.6 to 1.0.7
import { ILoggerChannel } from "./interfaces/ILoggerChannel"; | ||
import { ILoggerPayload } from "./interfaces/ILoggerPayload"; | ||
export { Console } from "./Console"; | ||
export declare class Logger { | ||
@@ -4,0 +5,0 @@ private readonly channels; |
@@ -18,8 +18,9 @@ "use strict"; | ||
const promise_all_settled_1 = __importDefault(require("promise-all-settled")); | ||
const Console_1 = require("./Console"); | ||
const LogWeight_1 = require("./constants/LogWeight"); | ||
var Console_1 = require("./Console"); | ||
exports.Console = Console_1.Console; | ||
class Logger { | ||
constructor() { | ||
this.level = LogLevel_1.LogLevel.DEBUG; | ||
this.channels = [new Console_1.Console()]; | ||
this.channels = []; | ||
} | ||
@@ -26,0 +27,0 @@ addChannel(channel) { |
@@ -9,2 +9,4 @@ import LogCode from "./constants/LogCode"; | ||
export {Console} from "./Console"; | ||
export class Logger { | ||
@@ -11,0 +13,0 @@ private readonly channels: ILoggerChannel[]; |
{ | ||
"name": "ts-composite-logger", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Logger written in typescript. Includes a console channel by default. Allows to add other log channels by extending ILogChannel interface.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
21141
448