You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Ajitesh Das <aj...@sbcglobal.net> on 2003/10/14 08:20:09 UTC
Turning off INFO/DEBUG message
Hi All:
I would like to disable this initial message. This comes on the console as
soon as I
start up the OJB- application. Is there any property in the OJB.properties
that can turn off these message?
FooServer>[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] I
NFO: Create new connection
pool:org.apache.ojb.broker.metadata.JdbcConnectionDes
criptor@19a37a[
jcd-alias=default
default-connection=true
dbms=MsSQLServer
jdbc-level=2.0
driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
protocol=jdbc
sub-protocol=microsoft:sqlserver
db-alias=//localhost:1433;DatabaseName=MyDB;SelectMethod=cursor;User=abc;Pas
sword=password;
user=abc
password=*****
eager-release=false
ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1, maxActive=21,
max
Wait=5000, removeAbandoned=false, numTestsPerEvictionRun=10,
testWhileIdle=false
, minEvictableIdleTimeMillis=600000, testOnReturn=false, logAbandoned=false,
removeAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1,
testOnBorrow=true}
batchMode=false
useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
ignoreAutoCommitExceptions=false
sequenceDescriptor=<null>
]
Thanks
Re: Turning off INFO/DEBUG message
Posted by Danilo Tommasina <dt...@risksys.com>.
Try to set:
# Logger for ConnectionFactory
org.apache.ojb.broker.accesslayer.ConnectionFactoryAbstractImpl.LogLevel=ERROR
Since ConnectionFactoryPooledImpl extends ConnectionFactoryAbstractImpl,
this should do the job, otherwise set:
# The Default Logger instance used within OJB
DEFAULT.LogLevel=WARN
or if you do not want to modify the default log level add a new property:
org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl.LogLevel=WARN
bye
Danilo
> Hi All:
>
> I would like to disable this initial message. This comes on the console as
> soon as I
> start up the OJB- application. Is there any property in the OJB.properties
> that can turn off these message?
>
> FooServer>[org.apache.ojb.broker.accesslayer.ConnectionFactoryPooledImpl] I
> NFO: Create new connection
> pool:org.apache.ojb.broker.metadata.JdbcConnectionDes
> criptor@19a37a[
> jcd-alias=default
> default-connection=true
> dbms=MsSQLServer
> jdbc-level=2.0
> driver=com.microsoft.jdbc.sqlserver.SQLServerDriver
> protocol=jdbc
> sub-protocol=microsoft:sqlserver
>
> db-alias=//localhost:1433;DatabaseName=MyDB;SelectMethod=cursor;User=abc;Pas
> sword=password;
> user=abc
> password=*****
> eager-release=false
> ConnectionPoolDescriptor={whenExhaustedAction=0, maxIdle=-1, maxActive=21,
> max
> Wait=5000, removeAbandoned=false, numTestsPerEvictionRun=10,
> testWhileIdle=false
> , minEvictableIdleTimeMillis=600000, testOnReturn=false, logAbandoned=false,
> removeAbandonedTimeout=300, timeBetweenEvictionRunsMillis=-1,
> testOnBorrow=true}
> batchMode=false
> useAutoCommit=AUTO_COMMIT_SET_TRUE_AND_TEMPORARY_FALSE
> ignoreAutoCommitExceptions=false
> sequenceDescriptor=<null>
> ]
>
> Thanks
>
>
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
--
Danilo Tommasina, Dipl. Ing. FH Telecom
Software Engineer
RCS Riskmanagement Concepts Systems AG
Technoparkstrasse 1
CH-8005 Zuerich
T: +41 1 445 29 08
dtommasina@risksys.com
www.risksys.com
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org