Search in sources :

Example 1 with AntennaContextLogger

use of alma.acs.logging.domainspecific.AntennaContextLogger in project ACS by ACS-Community.

the class AcsLoggerTest method testAntennaContextLog.

public void testAntennaContextLog() {
    AntennaContextLogger antennaLogger = new AntennaContextLogger(acsLogger);
    antennaLogger.log(Level.WARNING, "Log with audience, array and antenna", OPERATOR.value, "Array01", "Antenna01");
    antennaLogger.log(Level.WARNING, "Log with array and antenna", "Array01", "Antenna01");
    antennaLogger.log(Level.WARNING, "Log exception with audience, array and antenna", new Exception("My dummy exception"), OPERATOR.value, "Array01", "Antenna01");
    antennaLogger.log(Level.WARNING, "Log exception with array and antenna", new Exception("My dummy exception"), "Array01", "Antenna01");
}
Also used : AntennaContextLogger(alma.acs.logging.domainspecific.AntennaContextLogger)

Aggregations

AntennaContextLogger (alma.acs.logging.domainspecific.AntennaContextLogger)1