A library designed to make logging easy. Well formatted and a lovely replacement to just print.
Project description
Tyclonie Logger
Version: 1.0
GitHub
Documentation
Requirements
These should automatically install during the install of Tyclonie Logger
Colorama (0.4.6) - pip install colorama==0.4.6
Classes
TyclonieLogger()
- Arguments: datetime_format (default value="%Y/%m/%d @ %H:%M:%S") - Uses python library datetime for formatting Datetime Documentation
- The TyclonieLogger class is what contains the functions and procedures required to log using the program, the functions and methods will be called from an instance of the TyclonieLogger class
Functions
log()
- Arguments: message
- Returns: Void (N/A)
- Logs the message that you pass into the console
warn()
- Arguments: message
- Returns: Void (N/A)
- Logs the message that you pass into the console as a warning, made to alert the user of the program
error()
- Arguments: message
- Returns: Void (N/A)
- Logs the message that you pass into the console as an error, made to alert the user of the program that someone bad has happened and it has been handled
get_datetime_formatted()
- Arguments: None
- Returns: String
- Gets the current date and time formatted in the format provided when its TyclonieLogger instance was created. The use of this is for testing the format you provided.
Examples
Note: You may decide to use exact imports, using "from tyclonielogger import TyclonieLogger" instead of using "import tyclonielogger", simply then just replace everywhere that says "tyclonielogger.TyclonieLogger" with "TyclonieLogger", and it will have the same effect
Using inheritance (Object Orientated Programming):
Using sequencing:
Example output:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for TyclonieLogger-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84efe6edda7393e72606f5468cfeb414721628b7a30840da05df19cdb668187d |
|
MD5 | 575f0f3dacb427d8225a0f7502a80166 |
|
BLAKE2b-256 | e3229d6e5e1bc7a6b52ee834927b5d030bbf03fe7fdba6dc08cf9de6e48edfcb |