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


Groups > comp.lang.python > #197021

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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From D'Arcy Cain <darcy@VybeNetworks.com>
Newsgroups comp.lang.python
Subject Re: FileNotFoundError thrown due to file name in file, rather than file itself
Date Wed, 13 Nov 2024 06:37:47 -0700
Organization Vybe Networks Inc.
Lines 16
Message-ID <mailman.111.1731593052.4695.python-list@python.org> (permalink)
References <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com> <5f972e7d-e72d-459b-9148-0af977a82ead@roelschroeven.net> <79074400-022a-42d8-b1c7-2fe53c5c7007@VybeNetworks.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de O5pC7mgWo5wiD5WggFP6awIrjMVGh49e6MSQVmKwdhdA==
Cancel-Lock sha1:RfN8qtVzlsYIRckQ9CLe0HSsQHI= sha256:r6TPB07f/ljxjGJZpdeL4s94gbD3S7rXhuTHi/4+Dm8=
Return-Path <darcy@VybeNetworks.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
Authentication-Results mail.python.org; dkim=pass reason="1024-bit key; unprotected key" header.d=vybenetworks.com header.i=@vybenetworks.com header.b=LVABflgd; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status UNSURE 0.320
X-Spam-Level ***
X-Spam-Evidence '*H*': 0.43; '*S*': 0.07; 'subject:name': 0.07; 'roel': 0.09; 'schroeven': 0.09; 'logs': 0.16; 'wrote:': 0.16; 'to:addr:python-list': 0.20; 'subject:file': 0.22; 'task': 0.26; 'header:User-Agent:1': 0.30; 'python-list': 0.32; 'header:Organization:1': 0.32; 'but': 0.32; 'header:In-Reply- To:1': 0.34; 'networks': 0.35; 'usual': 0.35; 'files': 0.36; "it's": 0.37; 'received:192.168': 0.37; 'file': 0.38; 'use': 0.39; 'services.': 0.39; 'received:98': 0.40; 'something': 0.40; 'day,': 0.62; 'similar': 0.63; 'simply': 0.63; 'let': 0.65; 'per': 0.68; 'and,': 0.69; 'days,': 0.69; 'older': 0.70; 'inc.': 0.73; 'rotating': 0.84; 'subject: \n ': 0.84; 'url-ip:98/8': 0.84; 'hand.': 0.91; 'subject:than': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=vybenetworks.com; s=VEXNET; t=1731505071; bh=a7xNM6J4Yo6cm4ixecW/6ahiW+etT8N0Ghozd8Dm3u4=; h=Date:Subject:To:References:From:In-Reply-To; b=LVABflgdjXnM1IWvjxA4O8G0TAEpZ2B+1I8E4wGiPzuJrqMpvVjc71TX7FUPW5W2A +O/c2GpRTI9sB+A/LC0wj9RWxI+orBkMQhd7YBveR4ZMd7PoUDwvh2XTQbr7kkvLzJ DcCF9hqo8ZRBWWsrS6wmbBG5y6CNENFG52w8zwxc=
User-Agent Mozilla Thunderbird
Content-Language en-US
In-Reply-To <5f972e7d-e72d-459b-9148-0af977a82ead@roelschroeven.net>
X-Mailman-Approved-At Thu, 14 Nov 2024 09:04:11 -0500
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 <79074400-022a-42d8-b1c7-2fe53c5c7007@VybeNetworks.com>
X-Mailman-Original-References <87v7wt986z.fsf@zedat.fu-berlin.de> <CAJQBtg=UOiOmmHa25EUZtrZO19F1O0_VxCO6gWjZ5ebAMHnXCA@mail.gmail.com> <mailman.92.1731341107.4695.python-list@python.org> <875xosyfr0.fsf@zedat.fu-berlin.de> <CAJQBtg=nr+KC5iz_WY7nqkGK+YBEWAPq40ksaWJCAOT_+=pHxg@mail.gmail.com> <5f972e7d-e72d-459b-9148-0af977a82ead@roelschroeven.net>
Xref csiph.com comp.lang.python:197021

Show key headers only | View raw


On 11/13/24 02:12, Roel Schroeven via Python-list wrote:
> What I most often do is use one logfile per day, with the date in the 
> filename. Then simply delete all files older than 7 days, or 30 days, or 
> whatever is useful for the task at hand. Not only does that sidestep any 
> issues with rotating logs, but I also find it's very useful to have the 
> date in the filename.

I do something similar for my system logs except that I let the system 
use the usual names and, at midnight, I rename the file appending the 
previous day's date to it and restarting services.

-- 
D'Arcy J.M. Cain
Vybe Networks Inc.
http://www.VybeNetworks.com/
IM:darcy@VybeNetworks.com VoIP: sip:darcy@VybeNetworks.com

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-11 15:05 +0100
  Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-11 17:04 +0100
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:15 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-12 20:10 +0100
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Greg Ewing <greg.ewing@canterbury.ac.nz> - 2024-11-13 14:04 +1300
          Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-13 02:13 +0000
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Mats Wichmann <mats@wichmann.us> - 2024-11-12 13:28 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-13 07:34 +1100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-13 08:11 +0100
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Barry <barry@barrys-emacs.org> - 2024-11-14 16:01 +0000
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Roel Schroeven <roel@roelschroeven.net> - 2024-11-13 10:12 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-13 21:07 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Left Right <olegsivokon@gmail.com> - 2024-11-14 08:03 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-14 19:13 +1100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself D'Arcy Cain <darcy@VybeNetworks.com> - 2024-11-13 06:37 -0700
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Ethan Furman <ethan@stoneleaf.us> - 2024-11-14 09:32 -0800
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Michael Torrie <torriem@gmail.com> - 2024-11-14 08:44 -0700
        Re: FileNotFoundError thrown due to file name in file, rather than file itself Jon Ribbens <jon+usenet@unequivocal.eu> - 2024-11-14 18:12 +0000
  Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-11 18:24 +0100
  Re: FileNotFoundError thrown due to (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-11-11 21:05 +0000
  Re: FileNotFoundError thrown due to file name in file, rather than file itself Chris Angelico <rosuav@gmail.com> - 2024-11-12 12:17 +1100
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:00 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself dieter.maurer@online.de - 2024-11-13 19:36 +0100
      Re: FileNotFoundError thrown due to file name in file, rather than file itself Kushal Kumaran <kushal@locationd.net> - 2024-11-13 14:40 -0800
    Re: FileNotFoundError thrown due to file name in file, rather than file itself "Loris Bennett" <loris.bennett@fu-berlin.de> - 2024-11-12 10:03 +0100

csiph-web