datasurvey/src/main/webapp/app/admin/logs/log.model.ts

16 lines
338 B
TypeScript
Raw Normal View History

2021-07-03 21:48:27 +00:00
export type Level = 'TRACE' | 'DEBUG' | 'INFO' | 'WARN' | 'ERROR' | 'OFF';
export interface Logger {
configuredLevel: Level | null;
effectiveLevel: Level;
}
export interface LoggersResponse {
levels: Level[];
loggers: { [key: string]: Logger };
}
export class Log {
constructor(public name: string, public level: Level) {}
}