Additional to the standard targets supported by the NLog platform, the Application Server supports an extension that provides the LogEntriesNLog target which can be used to persist log messages to the online platform logentries.com.
This extension must be specified (loaded) at the beginning of your nlog.config file, see listing 1.
Using an nlog.config file as shown in listing 2 you can then advice the logging engine to persist logging information at logentries.com. Note that logging massively to this target will decrease performance. We recommend to only log important log messages to this target.
<?xml version="1.0" encoding="utf-8" ?> [...] |
Listing 1: Loading of the LogentriesNLog extension
<?xml version="1.0" encoding="utf-8" ?> |
Listing 2: An NLog configuration that writes log messages to the logentries.com service