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.Object
java.lang.Throwable
public void pass(java.lang.String action, java.lang.String message)
LogsInterface
pass
in interface LogsInterface
public void fail(java.lang.String action, java.lang.String message)
LogsInterface
fail
in interface LogsInterface
public void warn(java.lang.String action, java.lang.String message)
LogsInterface
warn
in interface LogsInterface
public void info(java.lang.String message)
LogsInterface
info
in interface LogsInterface
public void debug(java.lang.String message)
LogsInterface
debug
in interface LogsInterface
public void enableDebug(boolean enabled)
LogsInterface
enableDebug
in interface LogsInterface
public boolean isDebugEnabled()
isDebugEnabled
in interface LogsInterface
Copyright © SAS Institute. All Rights Reserved.