public class LogsImpl extends java.lang.Object implements LogsInterface
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
debugEnabled |
(package private) java.nio.file.Path |
logpath |
(package private) java.io.BufferedWriter |
writer |
| Constructor and Description |
|---|
LogsImpl()
Initialize a BufferedWriter with "RemoteControl.log" output at the User's current working directory.
|
LogsImpl(java.nio.file.Path apath)
Initialize a BufferedWriter with the file Path specified.
|
| Modifier and Type | Method and Description |
|---|---|
void |
debug(java.lang.String message)
Log or otherwise report a debug message
|
void |
enableDebug(boolean enabled)
enable or disable the logging or reporting of debug messages.
|
void |
fail(java.lang.String action,
java.lang.String message)
Log or otherwise report a failure/error message
|
void |
finalize() |
void |
info(java.lang.String message)
Log or otherwise report a generic informative message
|
protected void |
initialize()
Internal use.
|
boolean |
isDebugEnabled() |
void |
pass(java.lang.String action,
java.lang.String message)
Log or otherwise report a passed/success message
|
void |
warn(java.lang.String action,
java.lang.String message)
Log or otherwise report a warning message
|
java.nio.file.Path logpath
java.io.BufferedWriter writer
boolean debugEnabled
public LogsImpl()
throws java.io.IOException
java.io.IOException - from initialize() if Path is not a valid absolute Path.initialize()public LogsImpl(java.nio.file.Path apath)
throws java.io.IOException
apath - java.io.IOException - from initialize() if Path is not a valid absolute Path.initialize()protected void initialize()
throws java.io.IOException
java.io.IOException - if Path is not a valid absolute Path that can be written.public void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void pass(java.lang.String action,
java.lang.String message)
LogsInterfacepass in interface LogsInterfacepublic void fail(java.lang.String action,
java.lang.String message)
LogsInterfacefail in interface LogsInterfacepublic void warn(java.lang.String action,
java.lang.String message)
LogsInterfacewarn in interface LogsInterfacepublic void info(java.lang.String message)
LogsInterfaceinfo in interface LogsInterfacepublic void debug(java.lang.String message)
LogsInterfacedebug in interface LogsInterfacepublic void enableDebug(boolean enabled)
LogsInterfaceenableDebug in interface LogsInterfacepublic boolean isDebugEnabled()
isDebugEnabled in interface LogsInterfaceCopyright © SAS Institute. All Rights Reserved.