Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use better typings of consola once they are fixed #63
- Loading branch information
Showing
7 changed files
with
114 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { LogLevel } from './ILogger'; | ||
|
||
export abstract class ILoggerSettings { | ||
public abstract readonly debugMode: boolean; | ||
public abstract readonly traceMode: boolean; | ||
public abstract readonly logLevel: LogLevel | undefined; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { LoggerFactory } from '../../src/utils/logger/impl/loggerFactory'; | ||
import { ILoggerFactory, ILoggerSettings } from '../../src/utils/logger'; | ||
import { LogLevel } from '../../src/utils/logger/interfaces/ILogger'; | ||
|
||
export const loggerSettings: ILoggerSettings = { | ||
debugMode: true, | ||
traceMode: true, | ||
logLevel: LogLevel.TRACE, | ||
}; | ||
export const loggerFactory: ILoggerFactory = new LoggerFactory(loggerSettings); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { LoggerFactory } from '../../src/utils/logger/impl/loggerFactory'; | ||
import { ILoggerFactory, ILoggerSettings } from '../../src/utils/logger'; | ||
import { LogLevel } from '../../src/utils/logger/interfaces/ILogger'; | ||
|
||
export const loggerSettings: ILoggerSettings = { | ||
debugMode: true, | ||
traceMode: true, | ||
logLevel: LogLevel.TRACE, | ||
}; | ||
export const loggerFactory: ILoggerFactory = new LoggerFactory(loggerSettings); |