For the last 2 years I’ve working in prototypes for my games. And I started to make this small template to use it. Now it’s solid enough to talk about. This my start of this conversation. Today I’m explaining why and how I’ve my logger.

Keep in mind, all code is AGPL, so if you copy this code your codebase will be AGPL.

All feedback is welcome.

  • onomogo@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    11 days ago

    Getting a logger into the template early is a good call, probably the bit I’d leave till way too late. Nice of you to share it

    • Shin@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 days ago

      To be honest, this wasn’t the first Singleton I added… But it’s the entry point for my template at least. Since this is important when you have prototypes from 2 years ago that I want to pick something else. And the engine updated, and I don’t know what to do.

      But yeah, agree the earlier the Log exists, better it is.