mirror of
https://github.com/immich-app/immich.git
synced 2025-12-02 10:29:59 +09:00
feat(server): correlation id via injected logger (#8823)
* feat(server): correlation id via injected logger * feat: cid response header
This commit is contained in:
15
server/src/interfaces/logger.interface.ts
Normal file
15
server/src/interfaces/logger.interface.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { LogLevel } from 'src/entities/system-config.entity';
|
||||
|
||||
export const ILoggerRepository = 'ILoggerRepository';
|
||||
|
||||
export interface ILoggerRepository {
|
||||
setContext(message: string): void;
|
||||
setLogLevel(level: LogLevel): void;
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user