• pixeltree@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    76
    arrow-down
    1
    ·
    edit-2
    2 days ago

    You should have rolling log files of limited size and limited quantity. The issue isn’t that it’s a text file, it’s that they’re not following pretty standard logging procedures to prevent this kind of thing and make logs more useful.

    Essentially, when your log file reaches a configured size, it should create a new one and start writing into that, deleting the oldest if there are more log files than your configured limit.

    This prevents runaway logging like this, and also lets you store more logging info than you can easily open and go through in one document. If you want to store 20 gb of logs, having all of that in one file will make it difficult to go through. 10 2 gb log files is much easier. That’s not so much a consumer issue, but that’s the jist of it.

    • Toribor@corndog.social
      link
      fedilink
      English
      arrow-up
      13
      ·
      1 day ago

      As a sysadmin there are few things that give me more problems than unbounded growth and timezones.

    • yetAnotherUser@discuss.tchncs.de
      link
      fedilink
      arrow-up
      15
      arrow-down
      1
      ·
      2 days ago

      Fully agree, but the way it’s worded makes it seem like log being a text file is the issue. Maybe I’m just misinterpreting intent though.

    • teejay@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 days ago

      Essentially, when your log file reaches a configured size, it should create a new one and start writing into that, deleting archiving the oldest

      FTFY

      • pixeltree@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        4
        ·
        1 day ago

        Sure! Best practices vary to your application. I’m a dev, so I’m used to configuring stuff for local env use. In prod, archiving is definitely nice so you can track back even through heavy logging. Though, tbh, if you’re applications getting used by that many people a db logging system is probably just straight better