Documentation Menu
Configuring JSNLog using server code
JSNLog has 2 componets:
- A server side component that receives log messages from the client and hands them to a server side logging package. This is obviously configured on the server.
- A client side component (jsnlog.js) where the client side loggers live. JSNLog lets you configure this on either the server (described on this page) or the client (details).
This page first shows how to
It then shows how to pass your configuration settings from the server to the client.
Pass your configuration settings from the server to the client
When you configure client side loggers, appenders, etc. on the server, that configuration information has to somehow travel to the client, so jsnlog.js can create the loggers, etc. you configured.
This translates the server side configuration into
calls to
configuration methods in jsnlog.js