Deprecated. Use java.util.logging or log4j. This class implements basic log file functionality, if you wish to log to another file other than Agentry's server or user log files.
All members of Logger, including inherited members.
ConstructorsModifier and Type | Constructor | Description |
---|---|---|
public | Logger(String, boolean) | Create a new log file. |
Modifier and Type | Method | Description |
---|---|---|
public void | appendDebug(String) | Append a message to the active debug buffer. |
public void | beginDebug(String) | Opens up a multiline debug buffer and adds the given message to it. |
public synchronized void | debug(String) | Write a message to the log file. |
public synchronized void | debug(String, Map< String, String >, String) | Write the contents of a Map object to the log file. |
public void | endDebug(String) | Close the debug buffer and write it to the log file. |
public boolean | isDebugMode() | Returns whether a debug buffer has been opened by beginDebug and is still open. |
If you need more powerful logging than what this class provides, you should look at the logging functionality that was added in JDK 1.4, or use Apache log4j or something like it.