@cocalc/backend
Version:
CoCalc backend functionality: functionality used by either the hub, the next.js server or the project.
27 lines (26 loc) • 735 B
TypeScript
import debug from "debug";
export declare function trimLogFileSize(): void;
declare const DEBUGGERS: {
error: debug.Debugger;
warn: debug.Debugger;
info: debug.Debugger;
http: debug.Debugger;
verbose: debug.Debugger;
debug: debug.Debugger;
silly: debug.Debugger;
};
type Level = keyof typeof DEBUGGERS;
export interface WinstonLogger {
error: Function;
warn: Function;
info: Function;
http: Function;
verbose: Function;
debug: Function;
silly: Function;
extend: (name: string) => WinstonLogger;
isEnabled: (level: Level) => boolean;
}
export default function getLogger(name: string): WinstonLogger;
export { getLogger };
export declare function setCounter(f: any): void;