Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.packagecloud.client;
 
Static class for getting Loggers
 
public class LoggerProvider {

    
Get the logger.

Returns:
the logger
    public static Logger getLogger(){
        Formatter formatter = new LogFormatter();
        ConsoleHandler handler = new ConsoleHandler();
        handler.setFormatter(formatter);
        Logger logger = Logger.getAnonymousLogger();
        logger.setUseParentHandlers(false);
        logger.addHandler(handler);
        return logger;
    }
New to GrepCode? Check out our FAQ X