Creates an instance of the LogService.
Note: This service creates a text file when either the success or fatal methods are
called, which is placed a logs directory of the current working directory with the name format ofYYY-MM.txt
. It is recommended to either use the
ProcessUtil.setCurrentWorkingDirectory in your main script file to control where the log files are
placed.
The name of the event that generated the LogService. This is included at the
start of a log message when the log file is built.
Creates an instance of the LogService.
Note: The LogService creates a log text file when eiter the success or fatal
methods are called which is placed in a log directory with the file format of YYYY-MM.txt
. In
order to ensure that the log directory is placed as desired, it is recommended to use
ProcessUtil.setCurrentWorkingDirectory in your main script file. It is also possible to provide a value
using the options.workingDirectory value.
The name of the event that generated the
LogService. This is included at the start of a log message when the log file is built.
An object containing some additional
configuration options to customize the LogService's behavior. If any option is left out, it is initialized
to a default value.
Creates an instance of the LogService.
Note: The LogService creates a log text file when eiter the success or fatal
methods are called which is placed in a log directory with the file format of YYYY-MM.txt
. In
order to ensure that the log directory is placed as desired, it is recommended to use
ProcessUtil.setCurrentWorkingDirectory in your main script file. It is also possible to provide a value
using the options.workingDirectory value.
The name of the event that generated the
LogService. This is included at the start of a log message when the log file is built.
An object containing some additional
configuration options to customize the LogService's behavior. If any option is left out, it is initialized
to a default value.
Adds debug content to the logger.
The content to log at the debug level.
Adds error content to the logger.
The content to log at the error level.
Adds fatal error content to the logger. Terminates the logger afterwords.
The content to log at the fatal level.
Getter method for the logger's event name.
The name of the event that created this instance of the LogService.
Getter method for the logger's log file path.
The file path for where the LogService will put the file once it has finished logging.
Getter method for the logger's log entries.
All of the log entries currently in the LogService.
Returns all the log entries in the LogService of a specified log level.
The log level to search the logger for.
An array of all the log entries matching the specified log level.
Returns all the log entries in the logger that are of the specified log level or higher. Priority is
as follows:
The log level to search the logger for.
An array of all the log entries matching or greater than the specified log level.
Getter method for the logger's parent directory path.
The file path for where the LogService will place the logs directory.
Getter method for the logger's start time.
The start time for the LogService.
Adds info content to the logger.
The content to log info level.
Indicates that the process resolved successfully. Logs a success message, and then flushes the
logger's log entries array afterwords.
Adds warn content to the logger.
The content to log warn level.
Generated using TypeDoc
Class to handle logging processes for an application. Can be customized to include logs of a specific
LogLevelType to a log file as desired.
Creating an instance of the LogService with the default configurations.
Creating an instance of the LogService with includeLogsOfLevel as a LogLevelType.
Creating an instance of the LogService with includeLogsOfLevel as a string.
Creating an instance of the LogService with a specified workingDirectory.