public class LogConfig extends Object
Extends LogManager's support for a single logging.properties file to support a three-level config. Each existent property file is concatenated together and used as a single LogManager configuration, with later entries overriding earlier ones.
1) $BUCK_DIRECTORY/config/logging.properties.st 2) $PROJECT_ROOT/.bucklogging.properties 3) $PROJECT_ROOT/.bucklogging.local.properties
| Constructor and Description |
|---|
LogConfig()
Default constructor, called by LogManager.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
flushLogs() |
static void |
setupLogging(LogConfigSetup logConfigSetup)
Creates the log output directory and concatenates logging.properties files together to
configure or re-configure LogManager.
|
static void |
setUseAsyncFileLogging(boolean useAsyncFileLogging) |
static boolean |
shouldUseAsyncFileLogging() |
public LogConfig()
throws IOException
IOExceptionpublic static void setUseAsyncFileLogging(boolean useAsyncFileLogging)
public static boolean shouldUseAsyncFileLogging()
public static void setupLogging(LogConfigSetup logConfigSetup) throws IOException
IOExceptionpublic static void flushLogs()