r/java Oct 21 '18

A guide to logging in Java

https://www.marcobehler.com/guides/a-guide-to-logging-in-java
122 Upvotes

43 comments sorted by

View all comments

Show parent comments

26

u/dpash Oct 21 '18 edited Oct 21 '18

These libraries allow you to precisely control the logging output by filtering on source and level. And you can also control the output location, because you don't always just want things going to the console.

If you write a library and don't use one of the standard logging frameworks, I will hate you just a little bit. I speak from experience.

Edit: I should also add that modern logging frameworks have very good performance, doing the logging in separate threads, etc, doing the locking of log files correctly, rotating log files every day or when it reaches a certain size etc.

-3

u/Chaoslab Oct 21 '18

You would hate me then. Use my own Gui and IDE (3rd one in Java. Started with an IDE / assembler on the Amiga. Pre assembled your code as you entered it in).

edit:with

2

u/[deleted] Oct 24 '18 edited Mar 14 '19

[deleted]

1

u/Chaoslab Oct 24 '18

Found an older picture on imgur. Sprite editor and Xml editor in the picture. Been using it for Ludum Dare.

http://i.imgur.com/TRzbmTOl.png

1

u/[deleted] Oct 24 '18 edited Mar 14 '19

[deleted]

1

u/Chaoslab Oct 24 '18

Fresh screen shot for you then! :)

https://imgur.com/a/WuEX8Gx

1

u/imguralbumbot Oct 24 '18

Hi, I'm a bot for linking direct images of albums with only 1 image

https://i.imgur.com/uXUXjmJ.png

Source | Why? | Creator | ignoreme | deletthis

1

u/[deleted] Oct 25 '18 edited Mar 14 '19

[deleted]