Compare commits
3 Commits
390376aeef
...
release
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a7205daf2
|
||
|
|
67bb075714
|
||
|
|
f3090c9065
|
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "@nixkrystik/logger",
|
||||
"description": "Simple, scalable logging package.",
|
||||
"version": "1.0.0",
|
||||
|
||||
"description": "A heavily stripped down logging library for JavaScript & TypeScript.",
|
||||
"version": "1.0.2",
|
||||
|
||||
"author": {
|
||||
"name": "Nix Krystik",
|
||||
"url": "https://teamhydra.dev/"
|
||||
|
||||
@@ -8,6 +8,10 @@ export class Logger {
|
||||
this.transports = transports;
|
||||
}
|
||||
|
||||
attach(transport: Transport) {
|
||||
this.transports.push(transport);
|
||||
}
|
||||
|
||||
async log(level: LogLevel, module: string, content: string): Promise<void> {
|
||||
const tasks: Promise<void>[] = [];
|
||||
|
||||
@@ -21,7 +25,7 @@ export class Logger {
|
||||
}
|
||||
|
||||
debug(module: string, content: string) {
|
||||
return this.log(LogLevel.Debug, module, content);
|
||||
this.log(LogLevel.Debug, module, content);
|
||||
}
|
||||
|
||||
info(module: string, content: string) {
|
||||
|
||||
Reference in New Issue
Block a user