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 2013/03/06 06:34:13 UTC

[jira] [Comment Edited] (SOLR-3706) Ship setup to log with log4j.

    [ https://issues.apache.org/jira/browse/SOLR-3706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594390#comment-13594390 ] 

Shawn Heisey edited comment on SOLR-3706 at 3/6/13 5:32 AM:
------------------------------------------------------------

here's the logging jars, in jetty's lib/ext:
{noformat}
[root@bigindy5 ~]# ls -al /opt/solr4/lib/ext/
total 548
drwxrwxr-x  2 ncindex ncindex   4096 Nov 30 10:59 .
drwxr-xr-x. 3 ncindex ncindex   4096 Feb  3 13:38 ..
-rw-r--r--  1 ncindex ncindex  16457 Oct 20 13:41 jcl-over-slf4j-1.7.2.jar
-rw-rw-r--  1 ncindex ncindex 489883 Oct 20 13:41 log4j-1.2.17.jar
-rw-r--r--  1 ncindex ncindex  26083 Oct 20 13:41 slf4j-api-1.7.2.jar
-rw-r--r--  1 ncindex ncindex   8819 Oct 20 13:41 slf4j-log4j12-1.7.2.jar
{noformat}
and for comparison purposes, here's the lib in solr.solr.home:
{noformat}
[root@bigindy5 ~]# ls /index/solr4/lib
icu4j-49.1.jar
lucene-analyzers-icu-4.2-SNAPSHOT.jar
mysql-connector-java-5.1.22-bin.jar
solr-dataimporthandler-4.2-SNAPSHOT.jar
solr-dataimporthandler-extras-4.2-SNAPSHOT.jar
{noformat}

                
      was (Author: elyograg):
    {noformat}
[root@bigindy5 ~]# ls -al /opt/solr4/lib/ext/
total 548
drwxrwxr-x  2 ncindex ncindex   4096 Nov 30 10:59 .
drwxr-xr-x. 3 ncindex ncindex   4096 Feb  3 13:38 ..
-rw-r--r--  1 ncindex ncindex  16457 Oct 20 13:41 jcl-over-slf4j-1.7.2.jar
-rw-rw-r--  1 ncindex ncindex 489883 Oct 20 13:41 log4j-1.2.17.jar
-rw-r--r--  1 ncindex ncindex  26083 Oct 20 13:41 slf4j-api-1.7.2.jar
-rw-r--r--  1 ncindex ncindex   8819 Oct 20 13:41 slf4j-log4j12-1.7.2.jar
{noformat}

                  
> Ship setup to log with log4j.
> -----------------------------
>
>                 Key: SOLR-3706
>                 URL: https://issues.apache.org/jira/browse/SOLR-3706
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 5.0, 4.3
>
>
> Currently we default to java util logging and it's terrible in my opinion.
> *It's simple built in logger is a 2 line logger.
> *You have to jump through hoops to use your own custom formatter with jetty - either putting your class in the start.jar or other pain in the butt solutions.
> *It can't roll files by date out of the box.
> I'm sure there are more issues, but those are the ones annoying me now. We should switch to log4j - it's much nicer and it's easy to get a nice single line format and roll by date, etc.
> If someone wants to use JUL they still can - but at least users could start with something decent.

--
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