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.3post1 - Fix the bug.
  • 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.post1.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.post1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sample_loggers-0.0.3.post1.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.post1.tar.gz
Algorithm Hash digest
SHA256 cc083de2c51ccbf9ac84acea227844c755014d79494dbe96c2737c13568aa0c3
MD5 b6d906a9984b0ea04f3b330b3222e2b2
BLAKE2b-256 af89b2e92e3c312a9eaed4a0aa2bad904b69362649df2b897ec3556668129139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sample_loggers-0.0.3.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 fbd97f83359e2dd6d7740465556ab36d6fd4b2e3e029bfe9e3a62e76b7998e13
MD5 dcfb523ee8c9c1d844b629c09da18fb5
BLAKE2b-256 9c5be74ae2aa2cca1d530adbc8fc2a816755383bf4b6bd88901cf3a4f025db76

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