Documentation Menu
AjaxAppender Object
Allows JavaScript loggers to send log items to the server.
Members
Member | Description |
---|---|
sendBatch Method | Flushes the batch buffer. Use for example when the page is unloaded. |
setOptions Method | Sets options for an ajax appender. |
Remarks
An AjaxAppender sends log messages to the server.
Loggers do not process log messages themselves. Instead, they pass them on to an appender. That way, the options that have to do with for example sending log messages to the server are centralized, making them more easy to manage.
JSNLog creates a default appender, so there is no need to create one yourself in order to start logging. Details
about this default appender, and how to associate JavaScript loggers with appenders, are
here