jetbrains.buildServer.log
Class LogInitializer

java.lang.Object
  extended by jetbrains.buildServer.log.LogInitializer

public class LogInitializer
extends java.lang.Object

Author:
Kir

Nested Class Summary
static interface LogInitializer.LogConfigurator
           
 
Field Summary
static java.lang.String LOG4J_CONFIGURATION
           
static java.lang.String TEAMCITY_AGENT_LOG4J_XML
           
static java.lang.String TEAMCITY_LOGS_DIR_PROP
           
static java.lang.String TEAMCITY_SERVER_LOG4J_XML
           
 
Method Summary
static void addConsoleAppender()
           
static org.apache.log4j.ConsoleAppender createConsoleAppender()
           
static void disableDebug()
           
static void enableDebug()
           
static LogInitializer.LogConfigurator fileConfigurator(java.io.File file, boolean watchForChanges)
           
static java.io.File getLogDir()
           
static void init(LogInitializer.LogConfigurator... configurators)
           
static void initAgentLogging()
           
static void initServerLogging()
           
static boolean isUnitTest()
           
static LogInitializer.LogConfigurator propertyConfigurator(boolean watchForFileChanges)
           
static void removeAllAppenders()
           
static LogInitializer.LogConfigurator resourceConfigurator(java.lang.String... resources)
           
static void setUnitTest(boolean enable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG4J_CONFIGURATION

@NonNls
public static final java.lang.String LOG4J_CONFIGURATION
See Also:
Constant Field Values

TEAMCITY_LOGS_DIR_PROP

@NonNls
public static final java.lang.String TEAMCITY_LOGS_DIR_PROP
See Also:
Constant Field Values

TEAMCITY_SERVER_LOG4J_XML

@NonNls
public static final java.lang.String TEAMCITY_SERVER_LOG4J_XML
See Also:
Constant Field Values

TEAMCITY_AGENT_LOG4J_XML

@NonNls
public static final java.lang.String TEAMCITY_AGENT_LOG4J_XML
See Also:
Constant Field Values
Method Detail

initServerLogging

public static void initServerLogging()

initAgentLogging

public static void initAgentLogging()

init

public static void init(@NotNull
                        LogInitializer.LogConfigurator... configurators)

fileConfigurator

public static LogInitializer.LogConfigurator fileConfigurator(@NotNull
                                                              java.io.File file,
                                                              boolean watchForChanges)

resourceConfigurator

public static LogInitializer.LogConfigurator resourceConfigurator(@NotNull
                                                                  java.lang.String... resources)

propertyConfigurator

public static LogInitializer.LogConfigurator propertyConfigurator(boolean watchForFileChanges)

getLogDir

@NotNull
public static java.io.File getLogDir()
                              throws LogInitializationException
Throws:
LogInitializationException

isUnitTest

public static boolean isUnitTest()

setUnitTest

public static void setUnitTest(boolean enable)

addConsoleAppender

public static void addConsoleAppender()

removeAllAppenders

public static void removeAllAppenders()

createConsoleAppender

public static org.apache.log4j.ConsoleAppender createConsoleAppender()

enableDebug

public static void enableDebug()

disableDebug

public static void disableDebug()