GiraffaFS / giraffa

Giraffa FileSystem (Slack: giraffa-fs.slack.com)
https://giraffa.ci.cloudbees.com
Apache License 2.0
17 stars 6 forks source link

Fix Giraffa Logging #87

Closed shvachko closed 9 years ago

shvachko commented 9 years ago

Original issue 87 created by shvachko on 2014-09-29T22:03:24.000Z:

Right now Giraffa client logs are printed to console and the already existing logs directory for Giraffa is empty. Attached patch creates a new log4j.properties for Giraffa and defaults the following:

GIRAFFA_ROOT_LOGGER=INFO,RFA GIRAFFA_SECURITY_LOGGER=INFO,NullAppender

The first one defaults logging to the log file and the second one defaults not logging security logs, as per what the hdfs scripts do. Of course these environment variables can be changed via, for example, giraffa-env.sh.

Script messages (HADOOP_HOME location, etc.) still print and slf4j multiple bindings error message still prints but that's a separate issue.

shvachko commented 9 years ago

Comment #1 originally posted by shvachko on 2014-09-29T22:04:27.000Z:

<empty>

shvachko commented 9 years ago

Comment #2 originally posted by shvachko on 2014-10-03T22:22:54.000Z:

Plus One.

This looks good. Let's get some logging in there.

shvachko commented 9 years ago

Comment #3 originally posted by shvachko on 2014-10-03T22:24:26.000Z:

Committed