tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Juan Luis (astrojuanlu@social.juanlu.space)'s status on Thursday, 09-Mar-2023 23:51:56 CET Juan Luis Juan Luis

    I've been coding Python for 10+ years and I still don't know how the hell to control logging or warnings. Ask me anything.

    #python

    In conversation Thursday, 09-Mar-2023 23:51:56 CET from social.juanlu.space permalink
    • Pybonacci (pybonacci@mastodon.social)'s status on Thursday, 09-Mar-2023 23:51:55 CET Pybonacci Pybonacci
      in reply to
      • ~ashwinvis

      @ashwinvis @astrojuanlu I've read good things about loguru but never used it

      https://github.com/Delgan/loguru

      In conversation Thursday, 09-Mar-2023 23:51:55 CET permalink
    • ~ashwinvis (ashwinvis@mastodon.acc.sunet.se)'s status on Thursday, 09-Mar-2023 23:51:56 CET ~ashwinvis ~ashwinvis
      in reply to

      @astrojuanlu I understood the hard way that

      1. logging.basicConfig and logging.disable looks simple, but messes up all the other loggers.
      2. logging is so complicated (with use cases like multiprocessing) that they had to write a cookbook

      https://docs.python.org/3/howto/logging-cookbook.html

      In conversation Thursday, 09-Mar-2023 23:51:56 CET permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.