Internal logger logLog added

This commit is contained in:
Ritzlgrmft
2015-09-17 15:49:54 +02:00
parent 781e4c294d
commit e9cc82ad94
2 changed files with 39 additions and 27 deletions

View File

@@ -1051,38 +1051,46 @@ declare module log4javascript {
// #region log4javascript error handling
/**
* Sets whether LogLog is in quiet mode or not. In quiet mode, no messages sent to LogLog have any visible effect. By default,
* quiet mode is switched off.
* @param quietMode Whether to turn quiet mode on or off.
* log4javascript has a single rudimentary logger-like object of its own to handle messages generated by log4javascript itself.
* This logger is called logLog and is accessed via log4javascript.logLog.
*/
export function setQuietMode(quietMode: boolean): void;
export namespace logLog {
/**
* Sets how many errors LogLog will display alerts for. By default, only the first error encountered generates an alert to the
* user. If you turn all errors on by supplying true to this method then all errors will generate alerts.
* @param showAllErrors Whether to show all errors or just the first.
*/
export function setAlertAllErrors(alertAllErrors: boolean): void;
/**
* Sets whether logLog is in quiet mode or not. In quiet mode, no messages sent to logLog have any visible effect. By default,
* quiet mode is switched off.
* @param quietMode Whether to turn quiet mode on or off.
*/
export function setQuietMode(quietMode: boolean): void;
/**
* Logs a debugging message to an in-memory list.
*/
export function debug(message: string, exception?: Error): void;
/**
* Sets how many errors logLog will display alerts for. By default, only the first error encountered generates an alert to the
* user. If you turn all errors on by supplying true to this method then all errors will generate alerts.
* @param showAllErrors Whether to show all errors or just the first.
*/
export function setAlertAllErrors(alertAllErrors: boolean): void;
/**
* Displays an alert of all debugging messages.
*/
export function displayDebug(): void;
/**
* Logs a debugging message to an in-memory list.
*/
export function debug(message: string, exception?: Error): void;
/**
* Currently has no effect.
*/
export function warn(message: string, exception?: Error): void;
/**
* Displays an alert of all debugging messages.
*/
export function displayDebug(): void;
/**
* Generates an alert to the user if and only if the error is the first one encountered and setAlertAllErrors(true) has not been called.
*/
export function error(message: string, exception?: Error): void;
/**
* Currently has no effect.
*/
export function warn(message: string, exception?: Error): void;
/**
* Generates an alert to the user if and only if the error is the first one encountered and setAlertAllErrors(true) has not been called.
*/
export function error(message: string, exception?: Error): void;
}
// #endregion
}