Skip to main content

oLog is a log module for python

Project description

oLog

oLog is a log module for Python3 To use oLog, you must call the class of the log type of your choice.

Types of logs available

  • sign_color_log - log with colored sign ([!] [x] [?] [*])
  • sign_log - log with sign ([!] [x] [?] [*]) not colored
  • color_log - log without colored signs. The signs will be replaced by: [ERROR], [WARNING]
  • simple_log - log without colorless signs. The signs will be replaced by: [ERROR], [WARNING]

Use

Import oLog:

import olog

You must therefore create a journal object:

# For the newspaper with sign:
log = olog.sign_log ('Server') # Replace server with the name of your application
# For the newspaper without colored sign:
log = olog.color_log ('Server') # Replace server with the name of your application
# For the newspaper without signs:
log = olog.simple_log ('Server') # Replace server with the name of your application

Then, to view a log, you need to do this:

log.error ('An error has occurred')

You can replace "error" with: info, valid and warning

In development

We are in the process of developing a log to file system.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

oLog-3.0.8-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file oLog-3.0.8-py3-none-any.whl.

File metadata

  • Download URL: oLog-3.0.8-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.7.0 requests/2.22.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for oLog-3.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 318cbf5951392f99791795312cf6eadfbc8f8f88b2ff1674970ac94528517073
MD5 2c6ea7de5b34dd23a00837628f309627
BLAKE2b-256 90b6e543b717a60410c5c704e834b7eaa7a92b92a894cd2aebbcb2fde503ea68

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