Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changed line 7 of log4d.props code

...

Zen Section
id311061978

The text of the log4d.props file should be:

Code Block
linenumberstrue
languagesql
#---- begin log4d.props ----
log4d.debug=TRUE

log4d.categoryFactory=TLogDefaultCategoryFactory

# root priority - valid values are 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL'
log4d.rootCategory=DEBUGINFO,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 ----

 

Download the sample log4d.props file:

Zen Button
textDownload
urlhttps://prometheus.atlas-sys.com/download/attachments/127894476/log4d.props?api=v2

 

The DLL will now log to a file called c:\illiad\dll\ILLiadDLL.log. This can be edited to another name or location. If you have multiple web folders (shared server or using test web), you can make a different log4d.props file in each web folder that points to another file name for that 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. 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.