Skip to content
Snippets Groups Projects
index.d.ts 721 B

/*~ Write your module's methods and properties in this class */
export class Log {
    constructor(config?: LogConfig);
    info(...message: any): string;
    notice(...message: any): string;
    debug(...message: any): string;
    warning(...message: any): string;
    log(...message: any): string;
    error(...message: any): string;
}
export interface LogConfig {
    name?: string;
    hostname?: string;
    file?: string;
    path?: string;
    loglevel?: LogLevel;
    delimiter?: string;
    format?: string;
    loki?: LogConfigLoki;
}
export interface LogConfigLoki {
  active?: boolean;
  server?: string;
}
export enum LogLevel {
  DEBUG = 5,
  INFO = 4,
  NOTICE = 3,
  WARN = 2,
  ERROR = 1,
  FATAL = 0
}