mirror of
https://github.com/immich-app/immich
synced 2026-08-22 13:13:05 +00:00
refactor: logging repository (#15540)
This commit is contained in:
parent
b31414af8f
commit
d3446f3092
53 changed files with 159 additions and 172 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import { ImmichWorker, LogLevel } from 'src/enum';
|
||||
|
||||
export const ILoggerRepository = 'ILoggerRepository';
|
||||
|
||||
export interface ILoggerRepository {
|
||||
setAppName(name: ImmichWorker): void;
|
||||
setContext(message: string): void;
|
||||
setLogLevel(level: LogLevel | false): void;
|
||||
isLevelEnabled(level: LogLevel): boolean;
|
||||
|
||||
verbose(message: any, ...args: any): void;
|
||||
debug(message: any, ...args: any): void;
|
||||
log(message: any, ...args: any): void;
|
||||
warn(message: any, ...args: any): void;
|
||||
error(message: any, ...args: any): void;
|
||||
fatal(message: any, ...args: any): void;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue