Log configuration for the BizDataX packages is located within the log4net.config file of the project (available through Solution Explorer in Visual Studio).
The default configuration will suffice for most needs so it does not need to be changed and it looks like this:
<log4net>
<renderer renderingclass="Ekobit.BizDataX.DataMasking.Common.Logging.ExceptionObjectLogger, Ekobit.BizDataX.DataMasking.Common" renderedclass="System.Exception"></renderer>
<appender name="AllAppender" type="log4net.Appender.FileAppender">
<file type="log4net.Util.PatternString" value="TestRC0102-%utcdate{yyyyMMdd-HHmmss}-logall.txt"></file>
<appendtofile value="true"></appendtofile>
<layout type="log4net.Layout.PatternLayout">
<conversionpattern value="%-5p %d %5rms %-25.25c{1} %-35.35M - %''%n"></conversionpattern>
</layout>
<encoding type="System.Text.UTF8Encoding"></encoding>
</appender>
<appender name="BasicAppender" type="log4net.Appender.FileAppender">
<file type="log4net.Util.PatternString" value="TestRC0102-%utcdate{yyyyMMdd-HHmmss}-logbasic.txt"></file>
<appendtofile value="true"></appendtofile>
<layout type="log4net.Layout.PatternLayout">
<conversionpattern value="%-5p %d %5rms %-25.25c{1} %-35.35M - %''%n"></conversionpattern>
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelmin value="INFO"></levelmin>
</filter>
<encoding type="System.Text.UTF8Encoding"></encoding>
</appender>
<appender name="ConsoleAppender" type="log4net.Appender.ColoredConsoleAppender">
<mapping>
<level value="FATAL"></level>
<forecolor value="Red"></forecolor>
<backcolor value="White"></backcolor>
</mapping>
<mapping>
<level value="ERROR"></level>
<forecolor value="Red"></forecolor>
</mapping>
<mapping>
<level value="WARN"></level>
<forecolor value="Yellow"></forecolor>
</mapping>
<mapping>
<level value="INFO"></level>
<forecolor value="White"></forecolor>
</mapping>
<layout type="log4net.Layout.PatternLayout">
<conversionpattern value="[%level]-%-25.25c{1} %-35.35M - %m%newline"></conversionpattern>
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelmin value="INFO"></levelmin>
</filter>
</appender>
<root>
<level value="ALL"></level>
<appender-ref ref="AllAppender"></appender-ref>
<appender-ref ref="BasicAppender"></appender-ref>
<appender-ref ref="ConsoleAppender"></appender-ref>
</root>
</log4net>
By default, information is logged in two log files - one with all information (bigger) and one with only essential information (smaller in size). When each file reaches 10MB in size a new log file will be created. The log severity level is located in the level tag. It has the value ALL
by default, but can safely be changed according to your needs.
BizDataX Documentation © Built by Ekobit. All rights reserved.
https://www.ekobit.com/ https://bizdatax.com/ https://bizdatax.com/support/