@obsidize/logger
Version:
A tiny javascript logging library
13 lines (12 loc) • 336 B
JavaScript
/**
* Basic constructible event used by the rest of this library.
*/
export class LogEvent {
constructor(level, tag, message, params = undefined, timestamp = Date.now()) {
this.level = level;
this.tag = tag;
this.message = message;
this.params = params;
this.timestamp = timestamp;
}
}