Re: FileNotFoundError thrown due to file name in file, rather than file itself

Liste des GroupesRevenir à cl python 
Sujet : Re: FileNotFoundError thrown due to file name in file, rather than file itself
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.python
Date : 14. Nov 2024, 09:13:54
Autres entêtes
Message-ID : <mailman.109.1731572048.4695.python-list@python.org>
References : 1 2 3 4 5 6 7 8
On Thu, 14 Nov 2024 at 18:05, Left Right via Python-list
<python-list@python.org> wrote:
>
On any Unix system this is untrue.  Rotating a log file is quite simple:
>
I realized I posted this without cc'ing the list:
http://jdebp.info/FGA/do-not-use-logrotate.html .
>
The link above gives a more detailed description of why log rotation
on the Unix system is not only not simple, but is, in fact,
unreliable.

You're assuming a very specific tool here. Log rotation isn't
necessarily performed by that one tool. There are many ways to do it.

Log to stderr. That puts the power in the hands of the sysadmin,
rather than forcing trickery like setting the log file name to be
/proc/self/fd/2 to get around it.

ChrisA

Date Sujet#  Auteur
11 Nov 24 * FileNotFoundError thrown due to file name in file, rather than file itself25Loris Bennett
11 Nov 24 +* Re: FileNotFoundError thrown due to file name in file, rather than file itself17Left Right
12 Nov 24 i`* Re: FileNotFoundError thrown due to file name in file, rather than file itself16Loris Bennett
12 Nov 24 i +* Re: FileNotFoundError thrown due to file name in file, rather than file itself3Left Right
13 Nov 24 i i`* Re: FileNotFoundError thrown due to file name in file, rather than file itself2Greg Ewing
13 Nov 24 i i `- Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
12 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Mats Wichmann
12 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Chris Angelico
13 Nov 24 i +* Re: FileNotFoundError thrown due to file name in file, rather than file itself2Loris Bennett
14 Nov 24 i i`- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Barry
13 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Roel Schroeven
14 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Michael Torrie
14 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Left Right
14 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Chris Angelico
13 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1D'Arcy Cain
14 Nov 24 i +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Ethan Furman
14 Nov 24 i `* Re: FileNotFoundError thrown due to file name in file, rather than file itself2Michael Torrie
14 Nov 24 i  `- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Jon Ribbens
11 Nov 24 +- Re: FileNotFoundError thrown due to file name in file, rather than file itself1dieter.maurer
11 Nov 24 +- Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited)1Lawrence D'Oliveiro
12 Nov 24 `* Re: FileNotFoundError thrown due to file name in file, rather than file itself5Chris Angelico
12 Nov 24  +* Re: FileNotFoundError thrown due to file name in file, rather than file itself3Loris Bennett
13 Nov 24  i+- Re: FileNotFoundError thrown due to file name in file, rather than file itself1dieter.maurer
14 Nov 24  i`- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Kushal Kumaran
12 Nov 24  `- Re: FileNotFoundError thrown due to file name in file, rather than file itself1Loris Bennett

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal