Logging strategies

Hi everyone!

I was exploring logging strategies for projects that need to run all the time. It mainly comes out of a need to find if any errors are thrown by Processing/PApplet.

Here’s a gist/snippet of what I came up with.

It’s lacking log rotations and is being overwritten, but it’s a start.

What are your go-to strategies?

Renaud

Hi @renaudfv,

I am not really familiar with logging in Java but here is a nice website that shows different solutions:

One popular logging framework is Log4J (also known for a recent vulnerability :wink: )

Hi, @josephh thanks for the feedback.

If anyone is looking for a clear example using the native Java libs, here it is:

1 Like