private static MyfacesLogger createMyfacesLogger(String name) 
    {
        if (name == null)
        {
            throw new IllegalArgumentException(_LOG.getMessage(
                    "LOGGER_NAME_REQUIRED"));
        }

        Logger log;

        if (name.startsWith("javax.faces"))
        {
            log = Logger.getLogger(name, _API_LOGGER_BUNDLE);
        }
        else if (name.startsWith("org.apache.myfaces."))
        {
            log = Logger.getLogger(name, _IMPL_LOGGER_BUNDLE);
        }
        else
        {
            log = Logger.getLogger(name);
        }

        return new MyfacesLogger(log);
    }
private static MyfacesLogger createMyfacesLogger ( String name ) { if ( name == null ) { throw new IllegalArgumentException ( _LOG . getMessage ( "LOGGER_NAME_REQUIRED" ) ) ; } Logger log ; if ( name . startsWith ( "javax.faces" ) ) { log = Logger . getLogger ( name , _API_LOGGER_BUNDLE ) ; } else if ( name . startsWith ( "org.apache.myfaces." ) ) { log = Logger . getLogger ( name , _IMPL_LOGGER_BUNDLE ) ; } else { log = Logger . getLogger ( name ) ; } return new MyfacesLogger ( log ) ; }
Find or create a logger for a named subsystem.  If a logger has
already been created with the given name it is returned.  Otherwise
a new logger is created.
<p>
If a new logger is created its log level will be configured
based on the LogManager configuration and it will configured
to also send logging output to its parent's handlers.  It will
be registered in the LogManager global namespace.

@param name        A name for the logger.  This should
be a dot-separated name and should normally
be based on the package name or class name
of the subsystem, such as java.net
or javax.swing
@return a suitable Logger