cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wido den Hollander <>
Subject [LOGGING] Logging levels in CloudStack code
Date Fri, 17 Jul 2015 08:58:21 GMT

After debugging multiple issues in CloudStack the past week I got
annoyed again by the fact that almost all logs are hidden behind
loglevel DEBUG and that our code doesn't make proper use of INFO, WARN
and ERROR.

I opened:

Now, fixing this is rather trivial in code expertise. Changed various
DEBUG rules to INFO, WARN or ERROR and the first steps are taken.

Sometimes more logging needs to be added, but that's OK.

I encourage everybody to make proper use of the logging instead of
putting everybody to use DEBUG.

Also, be aware that sometimes people might be trying to debug something
happening on a production cloud at 03:00 in the night (Like me) and
those people want proper loglines.

When writing logs, make sure they actually tell WHAT the code does. It's
not only you who has to understand the log, also the operator running
the code in production.



View raw message