LogConfigure
Configures features of aTM logging.
Member of namespace
Maintenance ManagerSyntax
bool LogConfigure (int severity, string filePath, bool overwrite, bool reflash, bool showTime, bool showDate, bool showSeverity)
Parameters
- severity
- Type: int
- The log severity limit [0-9]. 0 = maximum logging. 4 or 5 = typically informational or error logging.
- filePath
- Type: string
- Log file path name or blank to disable logging. Smart parameters are supported.
- overwrite
- Type: bool
- True overwrites any existing file.
- reflash
- Type: bool
- True flushes the error message buffer to disk after every write.
- showTime
- Type: bool
- True adds the current time to each log message.
- showDate
- Type: bool
- True adds the current date to each log message.
- showSeverity
- Type: bool
- True adds the severity to the log.
Returns
True if logging is successfully configured. Otherwise, False.Level
Any level.Details
Configures aTM logging. The severity controls verbosity of the log; logging only severe errors will provide the best performance at expense of reduced debugging information, should a debug trace be required.This will not change logging as configured for each of the tasks in the target application (i.e. RRS logs). If this action is not called, no aTM log file will be created. aTM logging can be evaluated to see which requests were transmitted to the Maintenance Manager Server.
- Example:
LogConfigure("5", "@STRING(C:\ParentDir\NENU\Logs\NENU.aTM)")In this example, rolling 'NENU.aTM.#.log' logs is placed into the custom directory.
LogConfigure("5", "@APPPATH(export)")In this example, the output directory is retrieved from the application service using Smart parameters. The path is the export directory for the current application.