Logger logger = Logger.getInstance(MyClass.class); //initialize logger logger.info("This is an informational message."); //log message
Logger logger = Logger.getInstance(MyClass.class); //initialize logger Exception e = new Exception("This is an error message."); //create exception logger.error(e); //log error messageIn these examples, the package library is likely to be part of the IntelliJ IDEA SDK.