Methods
Static
prepareEntry
- prepareEntry<Code>(scope, code, ...args): LogEntry
Parameters
code: Code
Rest
...args: Code extends LogMessagesCodes
? Parameters<{
100: (() => {
level: string;
message: string;
});
101: ((strArg) => {
level: string;
message: string;
});
102: ((message) => {
level: string;
message: string;
});
103: ((message) => {
level: string;
message: string;
});
104: ((message) => {
level: string;
message: string;
});
105: ((message) => {
level: string;
message: string;
});
106: ((status) => {
level: string;
message: string;
});
107: ((id) => {
level: string;
message: string;
});
108: ((entry) => {
level: string;
message: string;
});
109: ((id) => {
level: string;
message: string;
});
110: ((status, cached, disabled, uncached) => {
level: string;
message: string;
});
111: ((id) => {
level: string;
message: string;
});
112: ((id) => {
level: string;
message: string;
});
113: ((id) => {
level: string;
message: string;
});
114: ((id) => {
level: string;
message: string;
});
115: ((amount) => {
level: string;
message: string;
});
116: ((event) => {
level: string;
message: string;
});
117: ((shard) => {
level: string;
message: string;
});
118: ((shard, username) => {
level: string;
message: string;
});
}[Code]>
: Code extends LogErrorMessagesCodes
? Parameters<{
400: (() => string);
401: ((strArg) => string);
402: ((methodName) => string);
403: ((dirPath) => string);
}[Code]>
: never
Returns LogEntry
Static
appendScope
- appendScope(scope, code, logEntry): string
Returns string
Contains various methods for formatting log entries.