Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Sex dumps core (Sex is a Simple editor for X11) -- Seen on debian bugtracking


devel / comp.lang.python / How do you log in your projects?

SubjectAuthor
o How do you log in your projects?Lars Liedtke

1
How do you log in your projects?

<mailman.53.1644329596.7010.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16963&group=comp.lang.python#16963

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: lied...@punkt.de (Lars Liedtke)
Newsgroups: comp.lang.python
Subject: How do you log in your projects?
Date: Tue, 8 Feb 2022 15:13:07 +0100
Organization: punkt.de GmbH
Lines: 50
Message-ID: <mailman.53.1644329596.7010.python-list@python.org>
References: <7feb1932-360f-03fd-5980-7f0699bba7e0@punkt.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de 0lBEpnpQHs2tRvEki9DpyA+b4cKVjowr1AqtoKFd8Z8A==
Return-Path: <liedtke@punkt.de>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=none reason="no signature";
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.041
X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'projects,': 0.03; '"it':
0.05; 'run.': 0.05; 'thread': 0.05; 'variable': 0.05; 'moment,':
0.07; 'code?': 0.09; "shouldn't": 0.09; 'url:de': 0.09; 'log':
0.12; '721': 0.16; 'gmbh': 0.16; 'inspired': 0.16;
'subject:projects': 0.16; 'tel.': 0.16; 'python': 0.16; 'to:addr
:python-list': 0.20; 'maybe': 0.22; 'code': 0.23; 'subject:How':
0.23; 'run': 0.23; 'received:de': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'actual': 0.25; 'url-ip:188.166/16': 0.25; 'available,': 0.26;
'goes': 0.28; 'header:User-Agent:1': 0.30;
'header:Organization:1': 0.31; 'url-ip:188/8': 0.31; 'think':
0.32; 'to:name:python': 0.32; 'mark': 0.32; 'but': 0.32; 'there':
0.33; 'question.': 0.35; 'couple': 0.37; 'way': 0.38; 'read':
0.38; 'use': 0.39; 'finding': 0.39; 'on.': 0.39; 'hello,': 0.40;
'want': 0.40; 'best': 0.61; 'services': 0.61; 'finally': 0.62;
'simply': 0.63; 'feel': 0.63; 'send': 0.63; 'your': 0.64; 'came':
0.65; 'prevent': 0.67; 'received:217': 0.67; 'per': 0.68;
'obvious': 0.69; 'piece': 0.69; '500': 0.70; 'began': 0.70;
'free': 0.72; 'cheers': 0.76; 'email name:info': 0.80;
'subject:your': 0.83; 'subject:you': 0.84; 'basis?': 0.84;
'decent': 0.84; 'fabian': 0.84; 'j\xc3\xbcrgen': 0.84;
'naturally': 0.84
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.5.0
Content-Language: de-DE
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <7feb1932-360f-03fd-5980-7f0699bba7e0@punkt.de>
 by: Lars Liedtke - Tue, 8 Feb 2022 14:13 UTC

Hello,

inspired by this thread
https://mail.python.org/pipermail/python-list/2022-February/905167.html
I finally came around to send in this question.

I know how to use python logging generally. Being on the DevOps-Side of
things at the moment, I naturally began liking to run tools, which not
only have logging, but also have different levels of logging
configurable, because often when you run a couple of different services
and software projects, logging is often the first help you turn to, and
sometimes it is the only way to know what is going on. Not that the code
of most (FLOSS) software is not available, but you simply do not have
the time to read into the code of every piece of software you run.

So of course I want to write software on my own, if I have to or wpuld
like to, that has got a decent amount of logging. But how often to
actually log things? Of course the obvious answer is "it depends".

So how do you do your logging?
- On a line per line basis? on a function/method basis?
- Do you use decorators to mark beginnings and ends of methods/functions
in log files?
- Which kind of variable contents do you write into your logfiles? Of
course you shouldn't leak secrets...
- How do you decide, which kind of log message goes into which level?
- How do you prevent logging cluttering your actual code?

Maybe there are some questions I forgot, so please feel free to add
whatever you think might help finding the best way of logging (tm)

Cheers

Lars

--
punkt.de GmbH
Lars Liedtke
..infrastructure

Kaiserallee 13a
76133 Karlsruhe

Tel. +49 721 9109 500
https://infrastructure.punkt.de
info@punkt.de

AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor