final ExtendedPatternFormatter formatter = new ExtendedPatternFormatter( DEFAULT_FORMAT ); final File file = new File( logDestination ); m_logTarget = new FileTarget( file, false, formatter );
final ExtendedPatternFormatter formatter = new ExtendedPatternFormatter( DEFAULT_FORMAT );  if( "true".equals( properties.getProperty( "log-stdout", "false" ) ) ) { m_logTarget = new StreamTarget( System.out, formatter ); } else { final File file = new File( logDestination ); m_logTarget = new FileTarget( file, false, formatter ); }
    private Logger createLogger( final Properties properties )        throws Exception    {        final String logDestination =            properties.getProperty( "log-destination",                                    m_home + DEFAULT_LOG_FILE );        final String logPriority =            properties.getProperty( "log-priority", "INFO" );        final ExtendedPatternFormatter formatter = new ExtendedPatternFormatter(            DEFAULT_FORMAT );        final File file = new File( logDestination );        m_logTarget = new FileTarget( file, false, formatter );        //Create an anonymous hierarchy so no other        //components can get access to logging hierarchy        final Hierarchy hierarchy = new Hierarchy();        final org.apache.log.Logger logger = hierarchy.getLoggerFor( "Loom" );        logger.setLogTargets( new LogTarget[]{m_logTarget} );        logger.setPriority( Priority.getPriorityForName( logPriority ) );        logger.info( "Logger started" );        return new LogkitLogger( logger );    }