[ci] format
This commit is contained in:
parent
643443bcd9
commit
f62f05f181
1 changed files with 2 additions and 7 deletions
|
@ -43,18 +43,13 @@ export const levels: Record<LoggerLevel, number> = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Full logging API */
|
/** Full logging API */
|
||||||
export function log(
|
export function log(opts: LogOptions, level: LoggerLevel, type: string | null, message: string) {
|
||||||
opts: LogOptions,
|
|
||||||
level: LoggerLevel,
|
|
||||||
type: string | null,
|
|
||||||
message: string,
|
|
||||||
) {
|
|
||||||
const logLevel = opts.level;
|
const logLevel = opts.level;
|
||||||
const dest = opts.dest;
|
const dest = opts.dest;
|
||||||
const event: LogMessage = {
|
const event: LogMessage = {
|
||||||
type,
|
type,
|
||||||
level,
|
level,
|
||||||
message
|
message,
|
||||||
};
|
};
|
||||||
|
|
||||||
// test if this level is enabled or not
|
// test if this level is enabled or not
|
||||||
|
|
Loading…
Reference in a new issue