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.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.1.tar.gz (3.9 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.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sample_loggers-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 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.1.tar.gz
Algorithm Hash digest
SHA256 c744f4ac6faf5ee692fce973b602e1502ad0cb5a9be6102cb1e73db53324f276
MD5 f5cb3930c8bdc2195f90b8e088b228f6
BLAKE2b-256 e98993fb975734c1ccb79d0131ae6acabfb381d766b537207c3902dc06d943af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sample_loggers-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aadd38ea8875e0ab6503206f1bc4e38b9a3f7c5c44367d2738037cf807efe51d
MD5 54529329ad0de90d3230dbc950a17631
BLAKE2b-256 0ab4762fb2eaa91d793064ee8c0fc952c6a03020cdbfb72c76e7f3f46fa1163a

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