org.elasticsearch.common.logging
Class Loggers

java.lang.Object
  extended by org.elasticsearch.common.logging.Loggers

public class Loggers
extends Object

A set of utilities around Logging.


Field Summary
static String SPACE
           
 
Constructor Summary
Loggers()
           
 
Method Summary
static boolean consoleLoggingEnabled()
           
static void disableConsoleLogging()
           
static void enableConsoleLogging()
           
static ESLogger getLogger(Class clazz)
           
static ESLogger getLogger(Class clazz, Settings settings, Index index, String... prefixes)
           
static ESLogger getLogger(Class clazz, Settings settings, RiverName riverName, String... prefixes)
           
static ESLogger getLogger(Class clazz, Settings settings, ShardId shardId, String... prefixes)
           
static ESLogger getLogger(Class clazz, Settings settings, String... prefixes)
           
static ESLogger getLogger(Class clazz, String... prefixes)
           
static ESLogger getLogger(ESLogger parentLogger, String s)
           
static ESLogger getLogger(String s)
           
static ESLogger getLogger(String loggerName, Settings settings, String... prefixes)
           
static ESLogger getLogger(String name, String... prefixes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPACE

public static final String SPACE
See Also:
Constant Field Values
Constructor Detail

Loggers

public Loggers()
Method Detail

disableConsoleLogging

public static void disableConsoleLogging()

enableConsoleLogging

public static void enableConsoleLogging()

consoleLoggingEnabled

public static boolean consoleLoggingEnabled()

getLogger

public static ESLogger getLogger(Class clazz,
                                 Settings settings,
                                 ShardId shardId,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(Class clazz,
                                 Settings settings,
                                 Index index,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(Class clazz,
                                 Settings settings,
                                 RiverName riverName,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(Class clazz,
                                 Settings settings,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(String loggerName,
                                 Settings settings,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(ESLogger parentLogger,
                                 String s)

getLogger

public static ESLogger getLogger(String s)

getLogger

public static ESLogger getLogger(Class clazz)

getLogger

public static ESLogger getLogger(Class clazz,
                                 String... prefixes)

getLogger

public static ESLogger getLogger(String name,
                                 String... prefixes)


Copyright © 2009-2012. All Rights Reserved.