Skip to main content

That is simple logger library, that can manage logs dir.

Project description

cx-logger

That is really easy to use automatic logger. To start using it in app just install it.

pip install cx-logger

When library had been installed, import it. All code snippets above would use that import.

import cx_logger as logger

How create log directory? That is really simple, just type.

import cx_logger as logger
import pathlib

manager = logger.logs_manager(pathlib.Path("./logs"))
logging = manager.get_logger(logger.sync_logger)

logging.use_handler(logger.stderr_handler())

logging.info("That is only info.")
logging.warning("Oh, that's warning!!!")

After that operation You would see something like that in stderr.

[info] (2025-10-23 14:12:12) That is only info.
[warning] (2025-10-23 14:12:12) Oh, that's warning!!!

Directory ./logs would be created if not already exists, and in it You would see somethind like "2025-10-23.1.log". When You run script twice, then second file would be named like "2025-10-23.2.log".

More info

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

cx_logger-2025.10.23.post4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

cx_logger-2025.10.23.post4-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file cx_logger-2025.10.23.post4.tar.gz.

File metadata

  • Download URL: cx_logger-2025.10.23.post4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for cx_logger-2025.10.23.post4.tar.gz
Algorithm Hash digest
SHA256 f5802278f62bbfd4b9d71deca1836d38f101822da0da046800c5d0849441b053
MD5 81840d45dd1b60f596d1e6c9e7070019
BLAKE2b-256 82263e786277a12a265939f706e5457267f0d9f2117b720d8945bae0628b4d3d

See more details on using hashes here.

File details

Details for the file cx_logger-2025.10.23.post4-py3-none-any.whl.

File metadata

File hashes

Hashes for cx_logger-2025.10.23.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 44e453c2e6adf8634d92ca5a577ed5a1137019b757adad87756b09b876625d93
MD5 554c5e6f538135d6710a51d15ee38b21
BLAKE2b-256 5554481bfdf081182a631c7a8e28a42838d649a04957aee5b1cec457754148c3

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