MXS-362: Enable/disable log augmentation

Log message augmentation (appending of function name) can now
be enabled or disabled via the configuration file and command
line.

By default, the augmentation is disabled.
This commit is contained in:
Johan Wikman
2015-09-11 15:21:31 +03:00
parent 535523f9d7
commit 37f8148574
4 changed files with 39 additions and 2 deletions

View File

@ -124,6 +124,18 @@ log_debug=1
To disable the log use the value 0 and to enable it use the value 1.
#### `log_augmentation`
Enable or disable the augmentation of messages. If this is enabled, then each logged message is appended with the name of the function where the message was logged. This is primarily for development purposes and hence is disabled by default.
```
# Valid options are:
# log_augmentation=<0|1>
log_augmentation=1
```
To disable the augmentation use the value 0 and to enable it use the value 1.
#### `logdir`
Set the directory where the logfiles are stored. The folder needs to be both readable and writable by the user running MaxScale.