You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shawn Heisey (JIRA)" <ji...@apache.org> on 2012/10/23 15:49:11 UTC
[jira] [Created] (SOLR-3979) slf4j bindings other than jdk --
cannot change log levels
Shawn Heisey created SOLR-3979:
----------------------------------
Summary: slf4j bindings other than jdk -- cannot change log levels
Key: SOLR-3979
URL: https://issues.apache.org/jira/browse/SOLR-3979
Project: Solr
Issue Type: Bug
Affects Versions: 4.0
Reporter: Shawn Heisey
Fix For: 4.1
Once I finally got log4j logging working, I was slightly surprised by the message related to SOLR-3426. I did not really consider that to be a big deal, because if I want to look at my log, I'll be on the commandline anyway.
I was even more surprised to find that I cannot change any of the log levels from the admin gui. My default log level is WARN for performance reasons, but every once in a while I like to bump the log level to INFO to troubleshoot a specific problem, then turn it back down. This is very easy with jdk logging in either 3.x or 4.0. I changed to log4j because it easily allows me to put the date of a log message on the same line as the first line of the actual log message, so when I grep for things, I have the timestamp in the grep output.
Currently the only way for me to change my log level is by updating log4j.properties and restarting Solr. If the capability to figure this out on a class-by-class basis isn't there with log4j, I would at least like to be able to set the root logging level. Is that possible?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org
[jira] [Updated] (SOLR-3979) slf4j bindings other than jdk --
cannot change log levels
Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SOLR-3979?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan McKinley updated SOLR-3979:
--------------------------------
Attachment: log4j-solr-stuff.zip
here are some implementations of the LogWatcher that work for log4j
these were included in the main distribution, but since it makes for a weird compile/test classpath, they were removed. I think there is a vague plan to switch to log4j as the default provider but no activity there...
> slf4j bindings other than jdk -- cannot change log levels
> ---------------------------------------------------------
>
> Key: SOLR-3979
> URL: https://issues.apache.org/jira/browse/SOLR-3979
> Project: Solr
> Issue Type: Bug
> Affects Versions: 4.0
> Reporter: Shawn Heisey
> Fix For: 4.1
>
> Attachments: log4j-solr-stuff.zip
>
>
> Once I finally got log4j logging working, I was slightly surprised by the message related to SOLR-3426. I did not really consider that to be a big deal, because if I want to look at my log, I'll be on the commandline anyway.
> I was even more surprised to find that I cannot change any of the log levels from the admin gui. My default log level is WARN for performance reasons, but every once in a while I like to bump the log level to INFO to troubleshoot a specific problem, then turn it back down. This is very easy with jdk logging in either 3.x or 4.0. I changed to log4j because it easily allows me to put the date of a log message on the same line as the first line of the actual log message, so when I grep for things, I have the timestamp in the grep output.
> Currently the only way for me to change my log level is by updating log4j.properties and restarting Solr. If the capability to figure this out on a class-by-class basis isn't there with log4j, I would at least like to be able to set the root logging level. Is that possible?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org