One default: ~/.kamaki.log
User can use a custom: kamaki config set log_file <custom log file>
* global.token <user authentication token>
* global.log_file <logfile full path>
* global.token <user authentication token>
* global.log_file <logfile full path>
- set a custom location for kamaki logging. Default values are ~/.kamaki.log, /tmp/kamaki.log and ./kamaki.log (in that order)
+ set a custom location for kamaki logging. Default value is ~/.kamaki.log
* global.log_token <on|off>
allow kamaki to log user tokens
* global.log_token <on|off>
allow kamaki to log user tokens
$ kamaki config set log_file <logfile path>
$ kamaki config set log_file <logfile path>
-By default, kamaki keeps a list of possible logfile locations::
-
- ~/.kamaki.log, /tmp/kamaki.log, ./kamaki.log
+By default, kamaki logs at ~/.kamaki.log
When initialized, kamaki attempts to open one of these locations for writing, in the order presented above and uses the first accessible for appending logs. If the log_file option is set, kamaki prepends the value of this option to the logfile list, so the custom location will be the first one kamaki will attetmpt to log at.
When initialized, kamaki attempts to open one of these locations for writing, in the order presented above and uses the first accessible for appending logs. If the log_file option is set, kamaki prepends the value of this option to the logfile list, so the custom location will be the first one kamaki will attetmpt to log at.
# or implied, of GRNET S.A.
from os import chmod
# or implied, of GRNET S.A.
from os import chmod
+from os.path import expanduser
-LOG_FILE = ['kamaki.log', '/tmp/kamaki.log']
+LOG_FILE = [expanduser('~/.kamaki.log')]