Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #5131

Re: [Python-de] Mehrzeiliges Logging

From Christopher Arndt <chris@chrisarndt.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Mehrzeiliges Logging
Date 2018-03-13 15:40 +0100
Message-ID <mailman.50.1520953272.1867.python-de@python.org> (permalink)
References <3218a53d-27df-83f4-4577-c4b13da330ec@thomas-guettler.de> <eddcb912-8179-2d08-2536-0e3ff2a991bf@chrisarndt.de>

Show all headers | View raw


Am 13.03.2018 um 14:30 schrieb Thomas Güttler:
> Wie soll 'foo\nbar' nun auf Platte gespeichert werden? Welches Format
> bietet sich an?

Wie wäre es mit Logging im JSON-Format?

Z.B. hiermit: https://github.com/madzak/python-json-logger

Das schöne an der Benutzung eines solchen Custom-Formatters für das
Python Standardloggingsystem ist, dass man diese über die
Logging-Konfiguration ein- und ausschalten kann.


Chris

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] Mehrzeiliges Logging Christopher Arndt <chris@chrisarndt.de> - 2018-03-13 15:40 +0100

csiph-web