Skip to main content

Kumparan Log Format

Project description

# kumlog
Kumparan Logging Json Format

# Example Usage

```
def main():
logger.debug("test DEBUG logger")
logger.info("test INFO logger")
logger.warning("test WARNING logger")
logger.error("test ERROR logger")
logger.critical("test CRITICAL logger")

try:
raise ValueError("Input is not valid")
except Exception as e:
logger.exception(e)

try:
raise OSError("not found")
except Exception as e:
logger.exception(e)


if __name__ == '__main__':
# Setup the logging handler and the formatter
handler = logging.StreamHandler(stream=sys.stdout)
formatter = StackdriverLoggingFormatter(service_name="stackdriver-logging",
service_version="latest", environment="staging")
handler.setFormatter(formatter)
logger.addHandler(handler)
logger.setLevel(logging.DEBUG)

main()

```


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

kummis-0.0.1.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

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

kummis-0.0.1-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kummis-0.0.1.tar.gz.

File metadata

  • Download URL: kummis-0.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for kummis-0.0.1.tar.gz
Algorithm Hash digest
SHA256 9ceef757a8a277c2f198bbd2ffb276035298db1f6f6b12b1f4554e43b2a9b29d
MD5 1da730a8d992f267a9d6615152662da7
BLAKE2b-256 3639cd4ea5bdf01c0851a7355fbe4a2fe205fbf483308e2bee69ecdeb718f05d

See more details on using hashes here.

File details

Details for the file kummis-0.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for kummis-0.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 468f0a07bfda635f8f0b05c4a3764bb23a46186ababce9ea0532235904bc155a
MD5 fc22d8dc4b9f9a22e3f5325241264eef
BLAKE2b-256 d092640cc1225703dd1331d84f4d2466773b91705479c455305fc84d11a8040f

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