-
Notifications
You must be signed in to change notification settings - Fork 42
Home
Henryfan edited this page Apr 4, 2014
·
9 revisions
Welcome to the Log4Grid wiki!
Log4Grid.Config
<configuration>
<configSections>
<section name="logServerSection" type="Log4Grid.Service.LogServerSection, Log4Grid.Service"/>
<section name="log4GridSection" type="Log4Grid.Config.Log4GridSection, Log4Grid.Config"/>
</configSections>
<logServerSection xmlns="urn:Log4Grid.Service" host="127.0.0.1" port="20134"/>
<log4GridSection xmlns="urn:Log4Grid.Config">
<management name="sqlite" type="Log4Grid.Sqlite.Management4Sqlite,Log4Grid.Sqlite">
<properties>
<property name="DBFile" value="Data Source=C:\Users\Administrator\Documents\ikende_Private\Log4Grid\DB\Management.db;Pooling=true;FailIfMissing=false;"/>
</properties>
</management>
<logStore name="sqlite" type="Log4Grid.Sqlite.LogStore4Sqlite,Log4Grid.Sqlite">
<properties>
<property name="DBFile" value="Data Source=C:\Users\Administrator\Documents\ikende_Private\Log4Grid\DB\LogStore.db;Pooling=true;FailIfMissing=false;"/>
</properties>
</logStore>
<logSearch name="sqlite" type="Log4Grid.Sqlite.LogSearchHandler,Log4Grid.Sqlite">
<properties>
<property name="DBFile" value="Data Source=C:\Users\Administrator\Documents\ikende_Private\Log4Grid\DB\LogStore.db;Pooling=true;FailIfMissing=false;"/>
</properties>
</logSearch>
<user name="sqlite" type="Log4Grid.Sqlite.UserHandler,Log4Grid.Sqlite">
<properties>
<property name="DBFile" value="Data Source=C:\Users\Administrator\Documents\ikende_Private\Log4Grid\DB\Management.db;Pooling=true;FailIfMissing=false;"/>
</properties>
</user>
</log4GridSection>
</configuration>
default using Sqlite provider,setting sqlite db file with DBFile property.
execute Log4Grid.Service.WinService's install.bat setup Log4Gric service to windwos service.
- Configuration service host and port with log4Grid.Config
<logServerSection xmlns="urn:Log4Grid.Service" host="127.0.0.1" port="20134"/>
reference Log4Grid.Appender.dll in you .net project add Configuration section in log4net section.
<appender name="L4GAppender" type="Log4Grid.Appender.Log4GridAppender,Log4Grid.Appender">
<param name="Host" value="log4grid service ipaddress"/>
<param name="Port" value="log4grid service port"/>
<param name="ServerName" value="application host"/>
<param name="AppName" value="application name"/>
</appender>
<root>
<level value="ALL"/>
<appender-ref ref="L4GAppender"/>
</root>
Implements Log4Grid.Interfaces‘s interface configuration to log4grid.config file