Skip to content

Conversation

@kennethmitra
Copy link

Added the option to generate a csv file instead of the text log file.
This removes the "-n" argument and replaces it with "-t" to specify the log file type (options: "text", "csv", or "none")

@mfoc
Copy link
Owner

mfoc commented Nov 11, 2020

Thank you kennethmitra for your pull request. Work is very busy for me at the moment. However, when I get a chance over the next few weeks I will review your pull request and if everything is in order I will gratefully merge your code. Thank you again, Martin

with open(file, 'a') as writer:
writer.write(exit_msg + "\n")

if log_type == "csv":

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

elif would be better instead of multiple if statements since we need to check which log_type was chosen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants