Skip to main content

This package provides sample loggers.

Project description

Deep Learning Tools for Pytorch

Python >= 3.8

This package provides some common configurations to quickly create your own logger through the logging library.

Installation

pip install sample_loggers

Example for using

import os
import logging
from loggers import LoggerController

os.makedirs('./output', exist_ok=True)
logger_controller = LoggerController(log_file_name="log.txt" ,output_dir=config.OUTPUT)
logger = logger_controller.create_logger(
    logger_name='food_classification',
    log_level=logging.DEBUG,
    format_type="default"
)

Update

  • 0.0.3 - Add the level definition.
  • 0.0.2post2 - Fix the bug.
  • 0.0.2post1 - Fix the bug.
  • 0.0.2 - Add the summery and throughput method.
  • 0.0.1 - We provide the common config for logging to create logger.

License

Sample Loggers 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

sample_loggers-0.0.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sample_loggers-0.0.3-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file sample_loggers-0.0.3.tar.gz.

File metadata

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

File hashes

Hashes for sample_loggers-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c5ff9e4907e2d30cd3df87b9b98baa272c8be884632ea7e9b8db8072da49d80f
MD5 26b3d05e8786c249130425585a16bef4
BLAKE2b-256 fcb40b2738e411d15901edf860a5f2b928635a18d5efd1d538142d675967e0ca

See more details on using hashes here.

File details

Details for the file sample_loggers-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sample_loggers-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for sample_loggers-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6afb7588d23d460c5b9424dbc84c6eba65ecd8c1fb053721a7258be5a5db8242
MD5 40cc460fdb02383f02f966492b41d516
BLAKE2b-256 566988547987997b62656022dde07b6d0adf648e2feca7fab4a88386e1657450

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