You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Robert Lu (JIRA)" <ji...@apache.org> on 2018/06/04 03:11:00 UTC
[jira] [Commented] (LOG4PHP-98) Check for invalid names on
getLogger call
[ https://issues.apache.org/jira/browse/LOG4PHP-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16499693#comment-16499693 ]
Robert Lu commented on LOG4PHP-98:
----------------------------------
In my option, if log4php is misconfigured, it will fallback to rootLogger.
So I think this isn't a bug, and should be closed.
> Check for invalid names on getLogger call
> -----------------------------------------
>
> Key: LOG4PHP-98
> URL: https://issues.apache.org/jira/browse/LOG4PHP-98
> Project: Log4php
> Issue Type: Improvement
> Components: Code
> Affects Versions: 2.0.0
> Reporter: Florian Platzer
> Priority: Trivial
> Labels: call, check, fail, function, getlogger, initiate, instance, name
>
> When calling the Logger::getLogger function a name-check would be helpful.
> So, if someone defines the logger "L1" and calls $_logger = Logger::getLogger('L2'); an exception could be thrown
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)