Other Support Options
|
Page Tools
|
Feedback |
| Revised | : | January 5, 2006 (mc) |
| Version | : | Web DLL version 6.1.0.0 and higher |
| Revision | : | 1 |
SUMMARY
Following the instructions below will enable logging in the ILLiad Web DLL.
Caution: DLL Logging should only be enabled to aid in the diagnosis of a problem - the log files tend to get large quickly.
ENABLING LOGGING
To enable logging in the ILLiad DLL, create a file called c:\illiad\dll\log4d.props on the web server (the server where the ILLiad.dll file is located) that contains the following:
#---- begin log4d.props ----
log4d.debug=TRUE
log4d.categoryFactory=TLogDefaultCategoryFactory
# root priority - valid values are 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'
log4d.rootCategory=DEBUG,ROOT
# root appender
log4d.appender.ROOT=TLogFileAppender
log4d.appender.ROOT.append=TRUE
log4d.appender.ROOT.fileName=c:\illiad\dll\ILLiadDLL.log
log4d.appender.ROOT.errorHandler=TLogOnlyOnceErrorHandler
log4d.appender.ROOT.layout=TLogPatternLayout
log4d.appender.ROOT.layout.dateFormat=yyyy-mm-dd hh:MM:ss,zzz
log4d.appender.ROOT.layout.pattern=%d [%p] %c %t - %m%n
#---- end log4d.props ----
The DLL will now log to a file called c:\illiad\dll\ILLiadDLL.log
You may need to change the permissions on the c:\illiad\dll directory to allow the Internet Guest Account (IUSR_ILLIAD or similar) to create and write to a file. Also that file may not allow you to open it while the dll is still running. You may need to stop and restart the web server to open the file.
DISABLING LOGGING
To disable logging in the ILLiad DLL, rename the c:\illiad\dll\log4d.props file to something else (i.e. disable-log4d.props). If the DLL can not find that file, it will not log any actions.
More Related Topics
|