generated from ubiquity/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 7
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
a6103d9
commit bb9e691
Showing
8 changed files
with
161 additions
and
24 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
declare class PrettyLogs { | ||
constructor(); | ||
fatal(message: string, metadata?: any): void; | ||
error(message: string, metadata?: any): void; | ||
ok(message: string, metadata?: any): void; | ||
info(message: string, metadata?: any): void; | ||
debug(message: string, metadata?: any): void; | ||
verbose(message: string, metadata?: any): void; | ||
private _logWithStack; | ||
private _colorizeText; | ||
private _formatStackTrace; | ||
private _isEmpty; | ||
private _log; | ||
} | ||
declare enum LogLevel { | ||
FATAL = "fatal", | ||
ERROR = "error", | ||
INFO = "info", | ||
VERBOSE = "verbose", | ||
DEBUG = "debug", | ||
} | ||
|
||
export { LogLevel, PrettyLogs }; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
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