44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import Log from './Log';
|
|
import { Level } from './types';
|
|
/**
|
|
* LogOutputs class - logging level for each output channel
|
|
* @class LogOutputs
|
|
* @param {Log} [_log] The log on which this is the outputs property
|
|
* @param {string} [_namespace?] Defaults to the log's namespace, but overridable
|
|
*/
|
|
declare class LogOutputs {
|
|
private _log;
|
|
constructor(_log: Log);
|
|
/**
|
|
* Set the logging level for all output channels at once
|
|
* @name LogOutputs#all
|
|
* @type {Level}
|
|
*/
|
|
all: Level | keyof typeof Level;
|
|
/**
|
|
* The logging level for the console output channel
|
|
* @name LogOutputs#console
|
|
* @type {Level}
|
|
*/
|
|
console: Level | keyof typeof Level;
|
|
/**
|
|
* The logging level for the file output channel
|
|
* @name LogOutputs#file
|
|
* @type {Level}
|
|
*/
|
|
file: Level | keyof typeof Level;
|
|
/**
|
|
* The logging level for the Pegasus output channel
|
|
* @name LogOutputs#pegasus
|
|
* @type {Level}
|
|
*/
|
|
pegasus: Level | keyof typeof Level;
|
|
/**
|
|
* The logging level for the syslog output channel
|
|
* @name LogOutputs#syslog
|
|
* @type {Level}
|
|
*/
|
|
syslog: Level | keyof typeof Level;
|
|
}
|
|
export default LogOutputs;
|