Hello,
> I would like to enable logging while doing
> checkouts.
> How do I set a log level, so that I can see what is going on
First of all read the following article on setting the default logger up
and implementing your own logger --
https://wiki.svnkit.com/Troubleshooting.
If you want to keep using DefaultSVNDebugLogger, I'd suggest to use the
following approach for setting log levels:
SVNClientManager svnclientmgr = SVNClientManager.newInstance();
SVNUpdateClient svnCoClient = svnclientmgr.getUpdateClient();
ISVNDebugLog debugLog = new DefaultSVNDebugLogger();
Logger networkLogger = Logger.getLogger(SVNLogType.NETWORK.getName());
networkLogger.setLevel(Level.FINEST);
svnclientmgr.setDebugLog(debugLog);
// or
svnCoClient.setDebugLog(debugLog);
This way you can adjust log level for any SVNLogType instance. As for me
it looks quite dirty and custom logger is more preferable solution.
Semen Vadishev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
nambi s wrote:
> Hi
>
> I am a svnkit newbie and I would like to enable logging while doing
> checkouts.
> The code is really simple.
>
> SVNClientManager svnclientmgr = SVNClientManager.newInstance();
> SVNUpdateClient svnCoClient = svnclientmgr.getUpdateClient();
> File eboxdir = new File( "maven" );
> SVNURL svnurl =
> SVNURL.parseURIDecoded("
http://svn.apache.org/repos/asf/maven/components/trunk");
> svnCoClient.doCheckout( svnurl, eboxdir, SVNRevision.HEAD,
> SVNRevision.HEAD, SVNDepth.INFINITY, true);
> ISVNDebugLog log =svnCoClient.getDebugLog();
>
> By default logging disabled.
>
> How do I set a log level, so that I can see what is going on?
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
svnkit-users-unsubscribe@...
For additional commands, e-mail:
svnkit-users-help@...