Skip to main content

an easy logger outputs like java logs

Project description

loggerjava


an easy logger outputs like java logs

How to use

import loggerjava
logger = loggerjava
logger.info("test")
logger.warn("test",pos="insidecommand")

Outputs

[20:39:00] [main/debug]: test
[20:39:00] [main/info]: test
[20:39:00] [main/WARNING]: test
[20:39:00] [main/ERROR]: test
[20:39:00] [main/FATAL]: test

Config

logger.confg(name="log", showdetailedtime=False, showinconsole=True)
"""
:param name: output log file name
:param showdetailedtime: output log time format,False for short time, True for long time
:param showinconsole:whether output log will show in python console
:return:
"""

using logger.exportconfig() to export your current config

and using logger.inportconfig(inputconfig) to inport your config

Versions

0.0.5.1 rename outputconfig -> exportconfig

0.0.5 added the outputconfig and the loadconfig function,edited the config part to let it output log

0.0.4 upgrade the config sys and add helps

0.0.3 upload the descriptions

0.0.2 initial upload

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

loggerjava-0.0.5.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file loggerjava-0.0.5.1.tar.gz.

File metadata

  • Download URL: loggerjava-0.0.5.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for loggerjava-0.0.5.1.tar.gz
Algorithm Hash digest
SHA256 4cbf70c0c0089d8116d2836669696fe3b164f39edbf31796ab664b7acfbafce2
MD5 1a34a0cb1830d1327cf98a830564bcea
BLAKE2b-256 0812bca6cee63b016b137056e0378a5fa8d062fe0830937eb720942b2125588a

See more details on using hashes here.

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