You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Basti CLI currently only logs to the terminal. This issue proposes a solution that would allow logging to log file.
A logging config option would allow users to specify a file or location (or a default location would be used otherwise) where the Basti CLI would log its activity. This would be beneficial for a number of reasons, including:
Troubleshooting problems: If the Basti CLI encounters a problem, the log file could be used to track down the cause of the problem and to identify any errors that may have occurred.
Auditing: The log file could be used to audit the activity of the Basti CLI and to ensure that it is being used in a secure and compliant manner.
Proposed Solution
Building on issue #59 it would make sense to create a .config.yml (or json) file in this ~/.basti directory. This would then have a section for logging.
save_logs would enable or disable logging to a file log_line_limit is intended to limit the size of the file. This avoids log files that end up GB's in size. save_location allows the user to configure a save location, but default this is stored in the ~/.basti directory.
The logging itself should always be prefixed with a timestamp. This helps with troubleshooting events in time and allows you to check with AWS logging as well.
Initially, I'd recommend that these settings can just be modified through the config.yml file, but later a command could be added that changes these settings. basti config logs.save_logs true for example.
Feature Description
The Basti CLI currently only logs to the terminal. This issue proposes a solution that would allow logging to log file.
A logging config option would allow users to specify a file or location (or a default location would be used otherwise) where the Basti CLI would log its activity. This would be beneficial for a number of reasons, including:
Proposed Solution
Building on issue #59 it would make sense to create a
.config.yml
(or json) file in this~/.basti
directory. This would then have a section for logging.save_logs
would enable or disable logging to a filelog_line_limit
is intended to limit the size of the file. This avoids log files that end up GB's in size.save_location
allows the user to configure a save location, but default this is stored in the~/.basti
directory.The logging itself should always be prefixed with a timestamp. This helps with troubleshooting events in time and allows you to check with AWS logging as well.
Initially, I'd recommend that these settings can just be modified through the
config.yml
file, but later a command could be added that changes these settings.basti config logs.save_logs true
for example.Related Issues/PRs
#59
The text was updated successfully, but these errors were encountered: