B4J Question Disable Db (c3p0) Logging

Michael Sergio

Member
Licensed User
Longtime User
Hi . Is there a way to disable the c3p0 logging that appears on initialising the db pool?
Ex:
B4X:
Starting program
2017-09-13 09:08:59.957:INFO::main: Logging initialized @251ms
Sep 13, 2017 9:09:00 AM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
Sep 13, 2017 9:09:00 AM com.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2017-09-13 09:09:00.171:INFO:.................
Maybe via JavaObject runmethod?
I really need this, since its a console application and even in release mode, it prints out my db connection info( Like the host & port).
I tried printing some console chars that i found posted somewhere on these forums, but no luck.
Thank you.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

Michael Sergio

Member
Licensed User
Longtime User
Thank you. This is working great. Is there an option to disable also the server /jetty logging in console? Is not a must, but it would be nice.
B4X:
Starting program
INFO::main: Logging initialized @513ms
:INFO:oejs.Server:main: jetty-9.3.z-SNAPSHOT
INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@37374a5e{/,file:/....}
INFO:oejs.AbstractNCSARequestLog:main: Opened D:\...
INFO:oejs.ServerConnector:main: Started ServerConnector@78ac1102{...}
INFO:oejs.Server:main: Started @943ms
Thank you again.
 
Upvote 0

Michael Sergio

Member
Licensed User
Longtime User
Sorry for the jetty logging i forgot to search it on the forums, because i saw that there are still some logs after implementing your c3p0 solution. I`m sorry I wasted your time, since I could have searched for that part myself.

Thank you .
 
Upvote 0
Top