Package org.drip.analytics.support
Class Logger
java.lang.Object
org.drip.analytics.support.Logger
public class Logger
extends java.lang.Object
Logger implements level-set logging, backed by either the screen or a file. Logging always includes
time stamps, and happens according to the level requested.
- Module = Product Core Module
- Library = Fixed Income Analytics
- Project = Date, Cash Flow, and Cash Flow Period Measure Generation Utilities
- Package = Assorted Support and Helper Utilities
- Author:
- Lakshmi Krishnamurthy
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ERROR
public static final int ERRORLogger level ERROR- See Also:
- Constant Field Values
-
WARNING
public static final int WARNINGLogger level WARNING- See Also:
- Constant Field Values
-
INFO
public static final int INFOLogger level INFO- See Also:
- Constant Field Values
-
DEBUG
public static final int DEBUGLogger level DEBUG- See Also:
- Constant Field Values
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
Init
public static boolean Init(java.lang.String strConfigFile)Initialize the logger from a configuration file- Parameters:
strConfigFile
- Configuration file containing the logger file location- Returns:
- boolean indicating whether initialization succeeded
-
Log
public static boolean Log(int iLevel, boolean bHardLog, java.lang.String strMsg)Log a specific message to the level- Parameters:
iLevel
- the level of message (ERROR/WARNING/INFO/DEBUG)bHardLog
- whether the logging is to file/DB (true) or to screen (false)strMsg
- Message to be logged- Returns:
- boolean indicating whether logging operation succeeded
-