The Memurai log verbosity level is set via the
loglevel configuration flag, which supports the following values:
The Memurai log can output to the console or to a file. When running as a Windows service, the console log is not available. When running as a standalone application, the file log and the console log are mutually exclusive.
The following table summarizes the available options:
|Memurai mode||Console log||File log|
logfile configuration flag specifies the log file name and path.
logfile is a relative path, it will be relative to the path specified by the
dir flag (the
dir flag default value is the current working directory).
logfile value can also be set to an absolute path or to a UNC path.
logfile is not set, or if it's set to an empty string, no log file will be written; if Memurai is running as a standalone application, it will print the log output to the console.
If the log file path contains spaces, it must be enclosed in single or double quotes. The directory delimiter can be either the standard Windows backslash or the Unix style forward slash and both can be used for relative, absolute or UNC paths.
Configuration Flag Examples
The log file can be disabled by commenting out the
logfile flag using the
# symbol or setting it to an empty string, ex:
To set the log file to be located in the folder specified by the
The following are all valid ways of specifying a log file path:
logfile "log/memurai.log" #Unix style path delimiter logfile 'C:\memurai data\memurai.log' #absolute path single/double quotes can be used logfile "\\fileshare\memurai\memurai.log" #UNC folder
Windows EventLog Configuration
The Memurai Technical Preview doesn't support logging to the EventLog, but this feature is already in the works and will be included in future releases.