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.8.tar.gz (2.8 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.8-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: waylake_utils-0.1.8.tar.gz
  • Upload date:
  • Size: 2.8 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.8.tar.gz
Algorithm Hash digest
SHA256 d37feaa7f065cd3164cda82952522654f4d3e3bdb134d654bdc8fe1e7e83e55e
MD5 5abd063f96bf0534fc967450ab095cec
BLAKE2b-256 7f6c5995584ad26bab0feea188c22dbb0a5c643411b3922c8e7b30a24931ac26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waylake_utils-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6dfc4739e0c5aa9b6cb973e88c15053d01c5c430cfe81104e7e93dd9da54f24d
MD5 e90a8e098133577208408501e6efbecf
BLAKE2b-256 19a22182e107230b6987814e48eeadda341c5be87529836471849de95bb6ba9e

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