You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Jan Høydahl (Jira)" <ji...@apache.org> on 2022/02/22 15:46:00 UTC

[jira] [Commented] (SOLR-16044) SlowRequest logging disabled if ROOT logger changed to ERROR

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

Jan Høydahl commented on SOLR-16044:
------------------------------------

[~elyograg] - You did SOLR-11453, any ideas?


> SlowRequest logging disabled if ROOT logger changed to ERROR
> ------------------------------------------------------------
>
>                 Key: SOLR-16044
>                 URL: https://issues.apache.org/jira/browse/SOLR-16044
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: logging
>         Environment: Solr 8.4
>            Reporter: Jan Høydahl
>            Priority: Major
>
> If someone sets ROOT logger to ERROR, then even if SlowRequest logging is set to INFO, no logs will be written to {{{}solr_slow_requests.log{}}}.
> Some debugging revealed that changing log level of {{SolrCore}} to WARN fixes it. This suggests that since {{SlowRequest}} is not a real class but just a logger name, it is still subject to the log level of {{SolrCore}}.
> I suppose that the same will be true for {{SolrCore.Request}} logging.
> One solution could be to create a real class for SlowRequest logging. Another solution could be to explicitly set {{SolrCore}} level in {{log4j2.xml}} so that it does not follow the ROOT level.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org