You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2021/08/04 13:49:00 UTC
[jira] [Updated] (LOG4J2-3083) Why the logger get by Slf4j
LoggerFactory.getILoggerFactory() can only use current LoggerContext
[ https://issues.apache.org/jira/browse/LOG4J2-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carter Kozak updated LOG4J2-3083:
---------------------------------
Component/s: SLF4J Bridge
Fix Version/s: 2.15.0
Affects Version/s: 2.14.1
Issue Type: Bug (was: Question)
> Why the logger get by Slf4j LoggerFactory.getILoggerFactory() can only use current LoggerContext
> ------------------------------------------------------------------------------------------------
>
> Key: LOG4J2-3083
> URL: https://issues.apache.org/jira/browse/LOG4J2-3083
> Project: Log4j 2
> Issue Type: Bug
> Components: SLF4J Bridge
> Affects Versions: 2.13.3, 2.14.1
> Environment: Spring Boot 2.4.5
> Slf4j
> Reporter: wanghao
> Assignee: Carter Kozak
> Priority: Major
> Labels: newbie
> Fix For: 2.15.0
>
>
> In SpringBoot project with +test+ profile,
> org.slf4j.LoggerFactory.getLogger("xxx") can get test profile LoggerContext and read configuration from log4j2-test.xml.
> But
> org.slf4j.LoggerFactory.getILoggerFactory().getLogger("xxx") can only get current LoggerContext and read configuration from log4j2.xml.
>
> Is it designed like this? Why?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)