Csv-logger

Latest version: v1.3.0

Safety actively analyzes 622838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.3.0

This release adds an input to CsvLogger for `delimiter`. The argument is the second argument, pushing the following arguments back, so this will break your code if you are not using named arguments like in the example ( `CsvLogger(filename=filename, delimiter=delimiter, level=level, ...)` )

Note: the `fmt` input also needs to be updated to match your delimiter.

Example updated to:
python
csvlogger = CsvLogger(filename=filename,
delimiter=delimiter,
level=level,
add_level_names=custom_additional_levels,
add_level_nums=None,
fmt=fmt,
datefmt=datefmt,
max_size=max_size,
max_files=max_files,
header=header)

1.2.2

it was requested that the user be able to differentiate where logs are coming from by setting different logger names. Since this causes File I/O issues, I instead added the ability to specify custom logging levels on top of the usual DEBUG, INFO, etc. These new logging levels will default to int values of 100, 99, 98, etc unless specified using `add_level_nums`. I have updated the example to include logging of the levelname and used this new functionality.

1.1.2

The only functional change in this revision was adding the ability to read the logs from file using the naming syntax chosen during the logger initialization. For example, will read all "logs/log*.csv" files, sort them, and optionally attempt to evaluate the values within from string.

1.0.2

1.0.1

1.0.0

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.