Log configuration for BizDataX packages is located within the App.config file that is automatically added to a new BizDataX package.
The part of this configuration file relevant to logging is the log4net tag and everything contained within it. The default log configuration for BizDataX packages looks like this:
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file type="log4net.Util.PatternString" value="BizDataXPackage-%utcdate{yyyyMMdd-HHmmss}-log.txt"></file>
<appendtofile value="true"></appendtofile>
<layout type="log4net.Layout.PatternLayout">
<conversionpattern value="%-5p %d %5rms %-25.25c{1} %-25.25M - %m%n"></conversionpattern>
</layout>
</appender>
<!--<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" >
<applicationName value="BizDataX" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%level [%thread] %logger %method %newline%message" />
</layout>
</appender>-->
<root>
<level value="INFO"></level>
<appender-ref ref="FileAppender"></appender-ref>
<!--<appender-ref ref="EventLogAppender" />-->
</root>
</log4net>
By default, a new log file is created for every execution and changing this is not recommended unless you're upgrading BizDataX to a new version that uses a different log configuration (this page will always display the most recent log configuration). The log severity level is located in the level tag. It has the value INFO by default, but can safely be changed according to your needs. The name of the log file is in the following format:
{BizDataX package name}-{Start time of the execution}-log.txt
BizDataX Documentation © Built by Ekobit. All rights reserved.
https://www.ekobit.com/ https://bizdatax.com/ https://bizdatax.com/support/