Dears,
I was using Logback.xml configuration during implementing " Loggings " via "
SLF4J ", when I faced this problem ...
Although I used " DBAppender " before and it was working fine, this time its
not at all ... I tried to detect where is the error by the following ways but I
could not :-
1 - I added " FileAppender " on the same " backlog.xml ", and it was working
fine, while " DBAppender " is not ...2 - I replaced the ORACLE configuration
with MYSQL configuration and it worked perfectly !!!! 3 - I replaced the MySql
configuration of another working & tested project with Oracle Configuration and
it did not work too ...
I attached the " backlog.xml " with ORACLE configuration and willing to find
help ...
Thanks & Regards ...
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<statusListener
class="ch.qos.logback.core.status.OnConsoleStatusListener" />
<appender name="DB" class="ch.qos.logback.classic.db.DBAppender">
<connectionSource class="ch.qos.logback.core.db.DriverManagerConnectionSource">
<driverClass>oracle.jdbc.driver.OracleDriver</driverClass>
<url> jdbc:oracle:thin:@192.168.9.43:1521:db41093</url>
<user>NJMTRUNK</user>
<password>NJMTRUNK</password>
</connectionSource>
</appender>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<!--See also http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
<File>testlog1.log</File>
<encoder>
<pattern>%msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"/>
</appender>
<root level="debug" >
<appender-ref ref="DB"/>
<appender-ref ref="FILE"/>
</root>
</configuration>_______________________________________________
slf4j-dev mailing list
[email protected]
http://qos.ch/mailman/listinfo/slf4j-dev