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.9.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.9-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: waylake_utils-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 32619d16690fb65474fc900e1c8e26b5602760340a927da78085e926cefa4997
MD5 437a056657495fca09eb8022c1cb004b
BLAKE2b-256 026326996bcc2b88e60a222b3061c796b7d29c6e5af532d66439bcf4f99a40c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: waylake_utils-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 457a21d3acdbc12f1519c5a9c76dbbf30c3028988a4605a55600ec582d6114d4
MD5 5f5b4a28bc929e208b78f861153f168d
BLAKE2b-256 41f6cc2d87c54f9c0c37d2f5f03d1db98a64dc04341426c666a4b62e43ce209f

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