public static Logger createPlatformLogger ( ) { final Logger logger = Logger . getAnonymousLogger ( ) ; for ( final Handler handler : logger . getHandlers ( ) ) { logger . removeHandler ( handler ) ; } final Handler stderr = new StandardErrorOutputConsoleHandler ( ) ; stderr . setLevel ( Level . ALL ) ; final Handler stdout = new StandardOutputConsoleHandler ( ) ; stdout . setLevel ( Level . ALL ) ; logger . addHandler ( stderr ) ; logger . addHandler ( stdout ) ; logger . setUseParentHandlers ( false ) ; logger . setLevel ( Level . ALL ) ; return logger ; }
Create a logger with the given name for the platform .