Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output logged to console.log is too verbose, but no simple way to reduce it. #3170

Closed
cyberduck opened this issue May 3, 2009 · 2 comments
Closed
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

e802649 created the issue

The Logger for "httpclient.wire.header" is set to DEBUG level, which produces large amounts of output in the console.log file. I would prefer NOT to see this much output, but there is no easy way to reduce the logging level.

The relevant class is Preferences.java. I had to get its source, modify the log-level, recompile, then merge into "core.jar". Fortunately, I am a Java developer, so I knew how to do this.

There should be an easier way, even if it's loading a Java properties-file from ~/Library/Application Support/Cyberduck.

Or maybe there is an easier way involving a properties file or a user-defaults setting, but I couldn't find it in the Help or FAQ. If so, please point me to that.

Yes, I'm the guy who wrote the MacBinary Toolkit that CyberDuck uses.

-- GG

@cyberduck
Copy link
Collaborator Author

@dkocher commented

As of 406d5e9 the additivity of the HTTP wire logger is set to false which disables output to the default console appender regardeless of the logging level. The logging level for everything else can be set using the logging defaults property which is sent to the console.log; e.g.

defaults write ch.sudo.cyberduck logging INFO

HTTP headers are still logged to the ch.cyberduck.core.Session logger at INFO level.

The default level of the root logger is set to ERROR.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Replying to [3170 glguerin@…]:

Yes, I'm the guy who wrote the MacBinary Toolkit that CyberDuck uses.

-- GG

Yes, thanks for building that :) It is used to support Alias files.

@iterate-ch iterate-ch locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants