federer
Version:
Experiments in asynchronous federated learning and decentralized learning
23 lines • 982 B
TypeScript
import * as winston from "winston";
/** Interface for configuring the creation of a logger. */
export interface LoggerOptions {
/** Where to stream logs to. Defaults to "console". */
logTarget?: "none" | "console" | "file";
/**
* What level of logging to print, Will log all logs with that level and below
* ("below" means "more serious"; here, levels are in increasing level of
* seriousness).
*/
minLogLevel?: "silly" | "debug" | "info" | "warn" | "error";
}
/**
* Create a new logger.
*
* @param options Logger options
* @param consoleLabel If the options specify that the logs should be printed to
* console, the label prepended to each line of log
* @param filename If the options specify that the logs should be printed to a
* file, the name of the destination file
*/
export declare function createLogger(options: LoggerOptions | undefined, consoleLabel: string, filename: string): winston.Logger;
//# sourceMappingURL=log.d.ts.map