Hi Nicolai, On 19/08/16 16:05, Nicolai Parlog wrote:
On a tangent, I also wondered what would be the preferred way to log from inside my code. Should I use System::getLogger directly?Logger logger = System.getLogger("Application"); logger.log(Level.INFO, "Hello, World!"); so long ... Nicolai
If you use System.Logger then your log messages will end up in whatever logging backend has been plugged in through the system's LoggerFinder provider, without having to declare any dependencies on that specific backend. However - if you're writing an application and have selected a specific logging API for it (say - SLF4J or Log4J) then you should preferably use the logging facade provided by those APIs. best regards, -- daniel
