Groups sling-dev [jira] [Created] (SLING-2149) NPE in SlingLoggerConfig if log file can't be created
sling-dev discussions - subscribe and participate
[jira] [Created] (SLING-2149) NPE in SlingLoggerConfig if log file can't be created
1 message
NPE in SlingLoggerConfig if log file can't be created

-----------------------------------------------------

Key: SLING-2149
URL: https://issues.apache.org/jira/browse/SLING-2149
Project: Sling
Issue Type: Bug
Components: Commons
Affects Versions: Commons Log 2.1.0
Reporter: Carsten Ziegeler


If e.g. the default log writer file can't be created (e.g. the user has no permissions), then the writer with a null file handle is used nevertheless which then causes the Sling logger to end in NPEs when trying to write to the log.
If the file can't be created maybe stderr/stdout should be used

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


« back to discussions | PermaLink