Package com.microstrategy.utils.log
Class LogManager
- java.lang.Object
-
- com.microstrategy.utils.log.LogManager
-
public class LogManager extends java.lang.Object
- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Constructor Summary
Constructors Constructor Description LogManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
generateLogSettingError(java.lang.Exception ex)
A generic method to display an exception generated while setting logging defaults.boolean
getBooleanProperty(java.lang.String prefix, java.lang.String name, boolean defaultValue)
int
getIntProperty(java.lang.String prefix, java.lang.String name, int defaultValue)
Logger
getLogger(java.lang.String name)
java.util.Enumeration
getLoggerNames()
static LogManager
getLogManager()
java.lang.String
getProperty(java.lang.String name)
java.lang.String
getProperty(java.lang.String prefix, java.lang.String name)
java.lang.String
getProperty(java.lang.String prefix, java.lang.String name, java.lang.String defaultValue)
void
publish(LogRecord record)
void
readConfiguration()
void
readConfiguration(java.io.InputStream iStream)
void
reset()
-
-
-
Method Detail
-
getLogManager
public static LogManager getLogManager()
-
getLogger
public Logger getLogger(java.lang.String name)
-
getProperty
public java.lang.String getProperty(java.lang.String name)
-
getProperty
public java.lang.String getProperty(java.lang.String prefix, java.lang.String name)
-
getProperty
public java.lang.String getProperty(java.lang.String prefix, java.lang.String name, java.lang.String defaultValue)
-
getIntProperty
public int getIntProperty(java.lang.String prefix, java.lang.String name, int defaultValue)
-
getBooleanProperty
public boolean getBooleanProperty(java.lang.String prefix, java.lang.String name, boolean defaultValue)
-
publish
public void publish(LogRecord record)
-
readConfiguration
public void readConfiguration() throws java.util.MissingResourceException
- Throws:
java.util.MissingResourceException
-
readConfiguration
public void readConfiguration(java.io.InputStream iStream) throws java.io.IOException
- Throws:
java.io.IOException
-
reset
public void reset()
-
getLoggerNames
public java.util.Enumeration getLoggerNames()
-
generateLogSettingError
public static void generateLogSettingError(java.lang.Exception ex)
A generic method to display an exception generated while setting logging defaults. It will display it on the output console- Parameters:
ex
- The exception originally raised.
-
-