FileLogger
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: com.groupdocs.signature.logging.ILogger
public class FileLogger implements ILogger
Writes log messages to the file.
| Constructor | Description |
|---|---|
| FileLogger(String fileName) | Create logger to file. |
| Method | Description |
|---|---|
| error(String message, Exception exception) | Writes an error message to the console. |
| trace(String message) | Writes trace message to the console. |
| warning(String message) | Writes warning message to the console; |
| Warning log messages provide information about the unexpected and recoverable event in application flow. | |
public FileLogger(String fileName)
Create logger to file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| fileName | java.lang.String | Full file name with path |
public final void error(String message, Exception exception)
Writes an error message to the console. Error log messages provide information about unrecoverable events in application flow.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| message | java.lang.String | The error message. |
| exception | java.lang.Exception | The exception. |
public final void trace(String message)
Writes trace message to the console. Trace log messages provide generally useful information about application flow.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| message | java.lang.String | The trace message. |
public final void warning(String message)
Writes warning message to the console; Warning log messages provide information about the unexpected and recoverable event in application flow.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| message | java.lang.String | The warning message. |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.