Skip to main content

A logger to log the model training, etc.

Project description

Model Logger

Python >= 3.8

A package that contains method to log the model training log.

The package is an uncompleted package in the version 1.x. Its functions will be gradually improved in subsequent versions.

How to use

To start the model logger.

import os
import model_logger_dp

os.environ['LOG_PATH'] = './output/log'  # Set the directory for logs

# If you want to save the log with a specific file name, you should set the filename parameter.
# If you do not set the filename parameter, the log will be saved with a datatime name.
logger  = model_logger_dp.ModelLogger(filename='train.log')

# Use the print method to log the message.
print('Hellow World!')

To look the help and update log of the package, you can use the log_help and log_update method.

import model_logger_dp

model_logger_dp.log_help()
model_logger_dp.log_update()

Update

`1.0.1` - Add the logger decorator, improve the logger instance and implement help and update log method.
`1.0.0` - Initial release with basic logging functionality.

License

model_logger is MIT licensed. See the LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

model_logger_dp-1.0.1.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file model_logger_dp-1.0.1.tar.gz.

File metadata

  • Download URL: model_logger_dp-1.0.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for model_logger_dp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 27bff44975f9740259b6a9b9c2cdfcdb40a536f3fcbb071e619c32eda784ad76
MD5 dab33412ba2440cb81e7f7eea0277fd4
BLAKE2b-256 92881f99bcc94cb25f95a2fa33c695e6786aebe2d8fd74305d72405abc6954b5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page