[Hawkular-dev] Logging ...
Heiko W.Rupp
hrupp at redhat.com
Thu Jan 29 11:35:31 EST 2015
> Am 29.01.2015 um 17:04 schrieb Peter Palaga <ppalaga at redhat.com>:
>> Using prefixes of 't', 'd', 'i', 'w', 'e', 'f' may make the code-read
>> more obvious. Just a thought.
>
> +1 I find such prefixes handy.
> I'd even personaly vote for longer versions like
> debugMessageReceived(String msg);
An alternative could be to gather all messages of a Level in their own
interface and then have WarnLogger.LOG.foo() and DebugLogger.LOG.bar()
and so on.
Or we go A$ and so on :)
> LOG is a natural choice for a static final field, but it is not really a
> constant.
> log is best, IMO.
+1
Actually I don't care about the name that much as far as we do not change
them on each commit
More information about the hawkular-dev
mailing list