EnterpriseQualityCoding / FizzBuzzEnterpriseEdition

FizzBuzz Enterprise Edition is a no-nonsense implementation of FizzBuzz made by serious businessmen for serious business purposes.
21.05k stars 750 forks source link

Need logging and metrics #106

Open sbeitzel opened 10 years ago

sbeitzel commented 10 years ago

Enterprise software needs to emit log messages (for diagnostic and production validation purposes) and collect statistics (to tune and validate strategies once they hit the big lab). There's currently no logging system in place. We should consider some kind of logging facade which would allow injection of various logging implementations in whatever enterprise production environment we find ourselves.

Perhaps log4j?

bgotink commented 10 years ago

If we use Log4J we force ourselves to keep using it until we find time to refactor again. We should use slf4j with a log4j implementation. This allows us to switch to another logging implementation at our choosing.

Of course we could always use the log4j to slf4j bridge, but doing that would just be silly as this would incurr a unacceptable performance loss.

jvz commented 10 years ago

I recommend Log4j 2.0 as it's decoupled similarly like SLF4J.

mak0t0san commented 3 years ago

+1 for this. Would be great to have some logging so that we can troubleshoot issues more easily and analyze the output. Will need an interface so that we're not coupled to one particular implementation and then can have a factory that will create an instance based on configuration. Surprised to see that this issue from 2013 is still open.