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


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

Re: [Python-de] Mehrzeiliges Logging

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christopher Arndt <chris@chrisarndt.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Mehrzeiliges Logging
Date Tue, 13 Mar 2018 15:40:53 +0100
Lines 15
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>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de FydgZ3/94EaEYl5UnWygeglqVkOkSNrSmXnQo3ejGgOQ==
Return-Path <chris@chrisarndt.de>
X-Original-To python-de@python.org
Delivered-To python-de@mail.python.org
X-Virus-Scanned Debian amavisd-new at mx01.0x20.eu
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
In-Reply-To <3218a53d-27df-83f4-4577-c4b13da330ec@thomas-guettler.de>
Content-Language de-DE
X-BeenThere python-de@python.org
X-Mailman-Version 2.1.26
Precedence list
List-Id Die Deutsche Python Mailingliste <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <eddcb912-8179-2d08-2536-0e3ff2a991bf@chrisarndt.de>
X-Mailman-Original-References <3218a53d-27df-83f4-4577-c4b13da330ec@thomas-guettler.de>
Xref csiph.com de.comp.lang.python:5131

Show key headers only | 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