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.5.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: waylake_utils-0.1.5.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for waylake_utils-0.1.5.tar.gz
Algorithm Hash digest
SHA256 89014961b72b2b49a38a917b9a7e506d522ccfdc4090235e8b917b63908d292f
MD5 f14a1bf41239807f7bcf5052f6d2ca25
BLAKE2b-256 bf589461d49a48627071b79f1f008faaa20cbedf8f1267cf901e52b7763b8b3d

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