PyLogLib
A python logging library designed to be quick and easy to use
with a large amount of customization options
while still remaining simple
Log - class
Syntax
Log(prefix, suffix, splitter, time, clock, saveprefix, printprefix, savesuffix, printsuffix, savetime, printtime, print, file)
Description
Use Log() to create a Log object, this is essential for logging since it contains all the methods
in the library.
Arguments
-
prefix
string--- the default prefix for all logged messages -
suffix
string--- the default suffix for all logged messages -
splitter
string--- text to split the start of the message from the message content -
time
boolen--- if the time when logged should be displayed in the message -
clock
boolen--- if the time should contain the current clock -
saveprefix
boolen--- if the prefix should be included in the message saved to file -
printprefix
boolen--- if the prefix should be included in the printed message -
savesuffix
boolen--- if the suffix should be included in the message saved to file -
printsuffix
boolen--- if the suffix should be included in the printed message -
savetime
boolen--- if the time should be included in the message saved to file -
printtime
boolen--- if the time should be included in the printed message -
print
boolen--- if the logged messages should be printed to the console -
file
string--- file to log messages to (if left blank the messages will not be logged to a file)
log - method
Syntax
log(content, prefix, suffix, time)
Description
log() is a method of Log(), it is the standard way to log a message via the parameters of the object it is used on.
you can change these parameters with the arguments: prefix, suffix, time.
Arguments
-
content
string--- the content that the message contains -
prefix
string--- what prefix the message should have, if left blank it will used the default value defined in Log() -
suffix
string--- what suffix the message should have, if left blank it will used the default value defined in Log() -
time
boolen--- if the time when logged should be displayed in the message, if left blank it will used the default value defined in Log()
logtitle - method
Syntax
logtitle(content)
Description
logtitle() is a method of Log() and is used to display some content in a very visible format, it is typically
used for marking the start and end of tasks.
Arguments
- content
string--- the content of the title
lograw - method
Syntax
lograw(content)
Description
logtitle() is a method of Log() and is used to log a raw message without prefixes, suffixes or time.
Arguments
- content
string--- the content of the message
clear - method
Syntax
clear()
Description
clear() is a method of Log() and is used to wipe a log of all of it's previous messages.
Arguments
- This method does not have any arguments
remove - method
Syntax
remove(number)
Description
remove() is a method of Log() and is used to remove a certain amount of messages from a log.
Arguments
- number
integer--- the number of messages to remove
PyLogLib v1.0.8 - Change Log
-
Fixed error with Log.loglist
-
Changed description
Metadata
Release files for pyloglib 1.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyloglib-1.0.8.tar.gz | 4.4 kB | Without provenance | Details for pyloglib-1.0.8.tar.gz |
Release files / pyloglib-1.0.8.tar.gz
| Download URL | pyloglib-1.0.8.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07c070baf77f3a12e1c1f2a342299aa9c0939d24dca73a2b9cfc7c38c4f24e3e
|
|
BLAKE2b-256 checksum How to use checksums |
321b1d743ad592199270e438048b5769f39a45a7b7d09ed964a7fe5763fee295
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
|
Security for pyloglib 1.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.