On Mon, 16 Feb 2004, marc salvetti wrote:

> tom,
> 
> i tried to set the log level to debug in OJB.properties :
> 
> ROOT.LogLevel=DEBUG
> 
> but i don't understand how to access the log from my webapp, if i look to the 
> error log of my isp, i only see the server errors, but not the output i can see 
> on the console on my local computer

I wouldn't recommend setting the root level to debug as this results in
quite a lot of messages. A couple of lines below the ROOT.LogLevel line
there is a line 

org.apache.ojb.broker.metadata.RepositoryXmlHandler.LogLevel=WARN

which you change to DEBUG.

Also you should check which logging your appserver supports (probably
log4j) and set the LoggerClass to the corresponding logger class,
e.g. comment the line LoggerClass=...PoorMansLoggerImpl and uncomment the
line LoggerClass=...Log4jLoggerImpl
It can be that you have to change the debug level elsewhere (this at least
seems to be true for JBoss but might apply to Resin as well, see 
http://db.apache.org/ojb/deployment.html, paragraph 'OJB logging within 
JBoss').

Where your app server writes the logging messages is usually configuration
dependent, but you will probably have one 'output' file for each webapp
which is named after the webapp.

> well it is actually set to read-uncommited, i've tried to set it to 
> read-commited but it doesn't change anything, and if i don't set it explicitely, 
> i get the same error as in the first message of the thread (parser error)

As I said, I have no knowledge about this flag (I only use PB Api), but
perhaps the description of the ODMG lock manager helps you :

http://db.apache.org/ojb/lockmanager.html

Tom


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to