Skip to main content

Custom logging utility

Project description

Waylake Utils

개요

waylake-utils는 Python 애플리케이션을 위한 다양한 유틸리티 모듈을 제공하는 패키지입니다. 현재는 사용자 정의 로깅 설정을 포함하고 있으며, 향후 여러 유용한 기능들이 추가될 예정입니다. 이 패키지를 통해 애플리케이션 개발 과정에서 필요한 여러 기능들을 쉽고 효율적으로 구현할 수 있습니다.

주요 기능

  • 사용자 정의 로깅 : 애플리케이션의 다양한 부분에 일관된 로깅 설정을 적용할 수 있습니다. 로그 파일은 호출하는 스크립트의 위치에 따라 생성됩니다.
  • 추후 추가 : 향후 다양한 유틸리티 기능들이 추가될 예정입니다. 각 기능은 쉽게 통합하고 사용할 수 있도록 설계됩니다.

설치 방법

pip install waylake-utils

waylake-utils는 pip을 통해 쉽게 설치할 수 있습니다. 현재 GitHub 레포지토리나 내부 패키지 저장소를 통해 관리되고 있습니다.

사용 방법

로깅 설정

  1. 로깅 기능을 import합니다.
from waylake.utils import setup_logger
# or
from waylake import setup_logger
  1. 로거를 설정합니다. __file__을 인자로 전달하여 현재 스크립트 위치에 로그 파일을 생성합니다.
logger = setup_logger('my_logger_name', __file__)

logger = setup_logger(name='logger_name', caller_file=__file__, log_dir='./logs')
  1. 로그를 기록합니다.
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")

추가 기능 (향후 업데이트 예정)

  • 추가되는 기능들에 대한 설명과 사용 방법을 이곳에 기재합니다.

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

waylake_utils-0.1.10.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

waylake_utils-0.1.10-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file waylake_utils-0.1.10.tar.gz.

File metadata

  • Download URL: waylake_utils-0.1.10.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for waylake_utils-0.1.10.tar.gz
Algorithm Hash digest
SHA256 16cfe5838aa0e2604d87941cfd275a1c73312534d03da82d29d071061a6d2293
MD5 33ffd046a03c60fa0724c8e71aa65c08
BLAKE2b-256 e57292ca4f0c688b00e9465e599610b1cdd363b54d93aaab2d07e3dc041c284f

See more details on using hashes here.

File details

Details for the file waylake_utils-0.1.10-py3-none-any.whl.

File metadata

  • Download URL: waylake_utils-0.1.10-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for waylake_utils-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 fb7f232be6ee8e68263eb942ca9201ca3642bcc28eea00d3e4cc85c902630f5b
MD5 ced85ee1fe438159bb128434d787b9c5
BLAKE2b-256 ecf722f20b710d525a439142f1630761550f732a852a6eb798349696dd0620d9

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