src/lib/ajax-appender.configuration.ts
Configuration for AjaxAppender.
Properties |
|
batchSize |
batchSize:
|
Type : number
|
Optional |
Number of log messages sent in each request. Default: 1. |
threshold |
threshold:
|
Type : string
|
Optional |
Threshold. Valid values are: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN Default: WARN. |
timerInterval |
timerInterval:
|
Type : number
|
Optional |
Interval for sending log messages (in milliseconds). If set to 0, every message will be sent immediatedly. Default: 0. |
url |
url:
|
Type : string
|
Url to send JavaScript logs |
withCredentials |
withCredentials:
|
Type : boolean
|
Optional |
Specifies whether cookies should be sent with each request. Default: false. |
export interface AjaxAppenderConfiguration {
/**
* Url to send JavaScript logs
*/
url: string;
/**
* Specifies whether cookies should be sent with each request.
*
* Default: false.
*/
withCredentials?: boolean;
/**
* Number of log messages sent in each request.
*
* Default: 1.
*/
batchSize?: number;
/**
* Interval for sending log messages (in milliseconds).
*
* If set to 0, every message will be sent immediatedly.
*
* Default: 0.
*/
timerInterval?: number;
/**
* Threshold.
*
* Valid values are: ALL, DEBUG, ERROR, FATAL, INFO, OFF, TRACE, WARN
*
* Default: WARN.
*/
threshold?: string;
}