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.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.2.post2.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.2.post2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file sample_loggers-0.0.2.post2.tar.gz.

File metadata

  • Download URL: sample_loggers-0.0.2.post2.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.2.post2.tar.gz
Algorithm Hash digest
SHA256 3a6a7060e947d5888aa7ab063916cec38dcaca3397abcb0b6cba49a4e536b84d
MD5 65e5225a25d34e2fd4aba24ac11ebedf
BLAKE2b-256 ec630939b3f736aee4911fea5f5de27c1ec10fc94d317e6b7e64adccc78b151d

See more details on using hashes here.

File details

Details for the file sample_loggers-0.0.2.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for sample_loggers-0.0.2.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 633bae5ee5003d4654c73f7f45622bbae26cf30df2abaae3620e6f0bf23b7592
MD5 fc967e9626cd62c8c4b9a38f7b27c3a3
BLAKE2b-256 77481e95e251f7e7f2958c3779de6c520bba383f3be32149326bc67827b6733c

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