Hi Andrew,

> I have followed the steps described in the wiki pages for this.

Ah, somebody found it :)

> Currently it only seems to want to log to the file
> org.openoffice.sdbc.jdbcBridge.log in the OOo $USER directory.
> 
> Reading the wiki pages I decided the following 3
> lines:
> 
> setLogLevel( "org.openoffice.logging.DefaultLogger", 
> com.sun.star.logging.LogLevel.SEVERE )

There is no component using this logger ATM, so this is kind of
superfluous. Also, is should not be necessary when you want to do JDBC
logging, the various loggers are isolated.

> setLogLevel( "org.openoffice.sdbc.jdbcBridge", 
> com.sun.star.logging.LogLevel.FINEST  )
> 
> logToFile( "org.openoffice.sdbc.jdbcBridge", 
> converttoURL("c:\tmp\0001_jdbc" ) ) 
> 
> should create a file in the c:\tmp directory - but I seem to be doing 
> something wrong - then again the file org.openoffice.sdbc.jdbcBridge.log 
> is chuck full of data.
> ( I have tried a number of variations on that file name also - but to no 
> avail )

Can reproduce this :(
There were some last-minute changes to the implementation of the logger
initialization-from-configuration, resulting from interface design
reviews - seems I broke something during this :(

> If I am doing something wrong could you let me know what, if not then 
> would you want an issue opened for this?

Please open an issue, owner is me.

> Also I notice that on the wiki overview page the links for 
> ConsoleHandler 
> <http://api.openoffice.org/docs/common/ref/com/sun/star/logging/ConsoleHandler.html>,
>  
> FileHandler 
> <http://api.openoffice.org/docs/common/ref/com/sun/star/logging/FileHandler.html>
>  
> and the PlainTextFormatter 
> <http://api.openoffice.org/docs/common/ref/com/sun/star/logging/PlainTextFormatter.html>
>  
> seem to be broken.

Kind of.
The IDL reference is updated with every release, means the current
reference is from OOo 2.2(.1). The logging facilities were introduced on
the way to 2.3, so they're not yet included. As soon as 2.3 is out, and
our SDK team will update the reference, the links will work.

Ciao
Frank

-- 
- Frank Schönheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems                      http://www.sun.com/staroffice -
- OpenOffice.org Base                       http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

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

Reply via email to