Log Override Files¶
Flogin provides the ability to forcibly disable/enable logs for your plugin based on if certain files are present in the plugin’s directory. This check is done in your Plugin constructor and in its run() method.
Note
The disable_log_override_files option can be passed to Plugin to disable this behavior.
.flogin.debug¶
If the .flogin.debug file is present, then logs will forcibly be enabled using utils.setup_logging().
.flogin.prod¶
If the .flogin.prod file is present, then logs will forcibly be disabled, but only if they were setup using utils.setup_logging().
Matching¶
Flogin uses a star pattern at the start of the filename when looking for the files, so you can add whatever prefix you want. For example: REMOVE-TO-ENABLE-LOGS.flogin.prod.