-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Replace winston with @foxxmd/logging
- Loading branch information
Showing
18 changed files
with
813 additions
and
1,309 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
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,28 +1,8 @@ | ||
import {LogLevel} from "./Atomic.js"; | ||
|
||
export interface LoggingOptions { | ||
/** | ||
* Specify the minimum log level for all log outputs without their own level specified. | ||
* | ||
* Defaults to env `LOG_LEVEL` or `info` if not specified. | ||
* | ||
* @default 'info' | ||
* */ | ||
level?: LogLevel | ||
/** | ||
* Specify the minimum log level to output to rotating files. If `false` no log files will be created. | ||
* */ | ||
file?: LogLevel | false | ||
/** | ||
* Specify the minimum log level streamed to the UI | ||
* */ | ||
stream?: LogLevel | ||
/** | ||
* Specify the minimum log level streamed to the console (or docker container) | ||
* */ | ||
console?: LogLevel | ||
import { LogOptions } from "@foxxmd/logging"; | ||
import { DiscordLogLevel } from "./Atomic.js"; | ||
|
||
export interface LoggingOptions extends LogOptions { | ||
db?: boolean | ||
|
||
discord?: LogLevel | ||
discord?: DiscordLogLevel | ||
} |
Oops, something went wrong.