Skip to main content

KrypticLogger is a tool to help better organize and minimizing the amount of code while logging!

Project description

Kryptic Studio - KrypticLogger

KrypticLogger is a tool to help better organize and minimizing the amount of code while logging!

Installation

  1. Clone Repository to Project Folder.
$ git clone https://github.com/KrypticStudio/KrypticLogger
  1. Install requirements
$ pip install -r requirements.txt
  1. Install setup.py
$ python3 setup.py install

Usage

  1. Import KrypticLogger!
from KrypticLogger import log #as log
import KrypticLogger.logger as logPath
  1. Call it anywhere!
#### Set path for log file
	logPath.path = "Logs/log.txt"
### Parameters
    # log = True #Logs to terminal or cmd
    # write = Ture #Writes log to file
    # time = True #Adds current time to log
log.LOG_EXAMPLE("Message", log = True, write = True, time = True)
  1. EXAMPLE
# Example
from KrypticLogger.logger import log
import KrypticLogger.logger as logPath

# Setting Log Path(Optional) ***DEFAULT "log.txt"
logPath.path = "Logs/log.txt"

# Calling Logs
log.debug("Debugging Example", log = True, write = True, time = True)
log.error("Error Example", log = True, write = True, time = True, code="Error Code", critical = True)
log.info("Info Example", log = True, write = True, time = True)
log.log("Logging Example", log = True, write = True, time = True)
log.success("Success Example", log = True, write = True, time = True)
log.track("Tracking Example", log = True, write = True, time = True)
log.warn("Warning Example", log = True, write = True, time = True)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

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

KrypticLogger-0.2-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page