Article about logging practices

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Article about logging practices

Matt Sicker
https://dev.to/grhegde09/logging-done-right-makes-your-life-bright

Thought this was an interesting take on a lot of the best practices
encouraged by Log4j. The article covers logging in the realm of C
applications, but it's all mostly relevant to Java and JVM languages as
well.

--
Matt Sicker <[hidden email]>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Article about logging practices

Mikael Ståldal-4
Yes, good article.

I find this advice a bit strange though:

"Add a log for every else in your code."


On 2017-07-30 23:25, Matt Sicker wrote:
> https://dev.to/grhegde09/logging-done-right-makes-your-life-bright
>
> Thought this was an interesting take on a lot of the best practices
> encouraged by Log4j. The article covers logging in the realm of C
> applications, but it's all mostly relevant to Java and JVM languages as
> well.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Article about logging practices

Christopher Schultz-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mikael,

On 8/1/17 3:27 PM, Mikael Ståldal wrote:
> Yes, good article.
>
> I find this advice a bit strange though:
>
> "Add a log for every else in your code."

Only bad programmers log the ifs. Only good programmers log the elses.
Didn't you know that?

;)

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJZgOCYAAoJEBzwKT+lPKRYzhEP/24mIwLdJ9vt+EKUdzmuc8Lp
d+uxMDOlilOjayJvzRZ9qeyNv/EYBdUg5y36diHZzJiBYo2lINLWFwdFYS3aEBkG
d7VQGdgliih8hCjzIFcYdwoCJk0vC/Og6SlhuRSuTzWr8tUv1E8KWsWKXEBw0eaM
Z0Lk9jroQgefeEl0yVGRk6EQyI7yaroG3tYoHdRts5rDXUFz3sjijbtxf9+gkC4O
InyqDOs8Fr6wPCSI/an/4lHh8KUFqB//XA0sHoVsrvbSxh15rfbmbCKxZA6DFQ20
fnKBeKZI+cSUGUY49OCTUKQ3MdPTOU4FVYkk+qqmnlVlKKJXkT/Ve/lKJKljsyZp
Q6TxsBRm/ANc5pXdPOcf2wtZkdvFdFMGKDM9yznlLETUPSlynEzT93sGcosbOZQy
LMj7ub/SvgwEIsiv5cjdd8H3zoCCGX/Z6eIH1s1qLKNSmlfPqXhd+R+wqMWO+Tsc
ddbHddKXRTDpnS/kQ3kZpdSqiHMvNIt4T/POIO2/XXuuQcn7XZOKFAcqWRugAk7o
UV0QjCgreOGvd4Z2XxXS+2xER+nftjCTNaY2HqGUgVcrZAczy6AFl7oiD23gR8IA
5IvPY9g7qbWkxLDQcTeK7iR6c8PeN0zAJ5VW5LwjXwXo9GLzCWOn3NrhWvAlT1CV
PcTQgGerP3AlqTqyOyVb
=nkiy
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...