Skip to main content

FIAAS Logging

Build Badge Codacy Badge

This library configures logging according to the current FIAAS recomended format.

Usage:

from fiaas_logging import init_logging

init_logging(format="json")

This would configure your application to emit JSON formatted logs on STDOUT.

Available options (all are keyword arguments to init_logging):

Key

Possible values

Meaning

format

json/plain

Select either JSON logging, or plain text logging

debug

True/False

Enable debug logging

The plain format contains the fields timestamp, level name, message, logger name, and thread name. In the json format, there are more fields, with more detail. The fields in the json output are:

Name

Meaning

@timestamp

Timestamp of message

@version

Version, legacy field to support ELK stack at FINN (to be removed?)

LocationInfo

A structure describing the code location that logged this message

message

The actual log message

extras

A structure containing extra fields. Used for thread context

throwable

A formatted stacktrace if the log message is the result of an exception

Changes since last version

  • 7d96bdc: Add pip cache to gitignore

Metadata

Release files for fiaas-logging 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fiaas-logging 0.1.1
File Size Uploaded
fiaas-logging-0.1.1.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fiaas-logging 0.1.1
File Interpreter ABI Platform
fiaas_logging-0.1.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 21.4 kB

Release files / fiaas-logging-0.1.1.tar.gz

Download URL fiaas-logging-0.1.1.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
436c6448f15307cd79552ef1035f4f69c5fb6e0586ab01d55847b3e6cf2717e5
BLAKE2b-256 checksum
How to use checksums
93d34c34df421a5c1cc704175c8547d99c57cc185ef81baaa449b0ae34de73d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release files / fiaas_logging-0.1.1-py2.py3-none-any.whl

Download URL fiaas_logging-0.1.1-py2.py3-none-any.whl
Size 8.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
47bf999d3734f066fe9911bbc65dbae2576790554e22038615f802322f10b9c1
BLAKE2b-256 checksum
How to use checksums
3ca4bf2b48bf3c8e8e85521a3660f6c0ac65fa1cf51e7b361b95d5e6618134de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page