-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d5c31a4
commit 72be94a
Showing
17 changed files
with
91 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
import { LogLevel, LogTransportType } from "./enums"; | ||
import { LogLevel, LogTransportType } from './enums' | ||
|
||
export const DEFAULT_LOG_LEVEL: LogLevel = LogLevel.INFO | ||
|
||
export const DEFAULT_LOG_TRANSPORTS: LogTransportType[] = [ | ||
LogTransportType.CONSOLE_ELECTRON, | ||
LogTransportType.FILE | ||
] | ||
export const DEFAULT_LOG_TRANSPORTS: LogTransportType[] = [LogTransportType.CONSOLE_ELECTRON, LogTransportType.FILE] | ||
|
||
export const DEFAULT_LOG_FILE = 'dist/logs/stdout' | ||
export const DEFAULT_LOG_FILE = 'dist/logs/stdout' |
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,12 +1,12 @@ | ||
export enum LogLevel { | ||
DEBUG = 'debug', | ||
INFO = 'info', | ||
WARN = 'warn', | ||
ERROR = 'error' | ||
DEBUG = 'debug', | ||
INFO = 'info', | ||
WARN = 'warn', | ||
ERROR = 'error', | ||
} | ||
|
||
export enum LogTransportType { | ||
CONSOLE = 'CONSOLE', | ||
CONSOLE_ELECTRON = 'CONSOLE_ELECTRON', | ||
FILE = 'FILE' | ||
} | ||
CONSOLE = 'CONSOLE', | ||
CONSOLE_ELECTRON = 'CONSOLE_ELECTRON', | ||
FILE = 'FILE', | ||
} |
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,17 +1,17 @@ | ||
import { LogLevel, LogTransportType } from "./enums" | ||
import { LogLevel, LogTransportType } from './enums' | ||
|
||
export interface LoggingHandlerConfig { | ||
packageName: string | ||
defaultLogTransportTypes?: LogTransportType[] | ||
defaultLogLevel?: LogLevel | ||
defaultLogFile?: string | ||
packageName: string | ||
defaultLogTransportTypes?: LogTransportType[] | ||
defaultLogLevel?: LogLevel | ||
defaultLogFile?: string | ||
} | ||
|
||
export interface GenerateLoggerConfig { | ||
moduleNames: string[] | ||
logLevel?: LogLevel | ||
transports?: LogTransportType[] | ||
logFile?: string | ||
moduleNames: string[] | ||
logLevel?: LogLevel | ||
transports?: LogTransportType[] | ||
logFile?: string | ||
} | ||
|
||
export type TailLoggerFunction = (...args: any[]) => void | ||
export type TailLoggerFunction = (...args: any[]) => void |
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
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
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
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