XLL+ Class Library (7.0)

XLL+ Application log

log4net

The XLL+ development tools use the Apache Foundation's log4net logging library. For information on log4net, see the Apache log4net web-site at http://logging.apache.org/log4net/.

The error log

When installed, the XLL+ development tools are set to report ERROR level messages only. These messages are written to a text file, xllplus.log, located in the user's TMP directory. You can view it by typing in a console window as follows:

notepad %TMP%\xllplus.log

Configuration file

XLL+ reads its log4net settings from the log4net configuration file, XlpLogSettings.log4net.xml.

It first looks in the user's application directory: [User Settings]\Application Data\Planatech\XLL+\7.0\VS8.0 (e.g. C:\Documents and Settings\MyName\Application Data\Planatech\XLL+\7.0\VS8.0). If a copy of the file is found there, then that is used.

If no file is found in the user's application directory, then XLL+ looks in the XLL+ binaries directory, e.g. [Program files]\Planatech\XLL+\7.0\VS8.0\bin.

Editing the configuration file

To switch on all levels of logging, change the value attribute of the root/level element to "DEBUG":

CopyXML
<root> 
  <level value="DEBUG" /> 
  <appender-ref ref="FileAppender" /> 
</root>

To view the log in the Visual Studio output window, add the VsAppender appender:

CopyXML
<root> 
  <level value="DEBUG" /> 
  <appender-ref ref="FileAppender" /> 
  <appender-ref ref="VsAppender" /> 
</root>