*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.logging.util
Class LoggerMonitor2
java.lang.Object
com.sas.services.logging.util.LoggerMonitor2
@SASScope("ALL")
@BinaryCompatibilityOnly
public class LoggerMonitor2
extends Object
LoggerMonitor - convenience class, used to format and output log messages destined
for the Application Monitor.
The LoggerMonitor.log() methods are then used to output messages.
Each of the log() methods takes a number of name/value pairs as parameters,
and provides the required formatting for an Application Monitor log message.
Additionally, one
log method is available that takes
a String array as a parameter, to handle the case where more than 12 name/value
pairs are in the ApplicationMonitor message.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final StringcreateLogMessage(String[] args) Formats a message which can be logged for consumption by a monitor.booleanDetermine if system monitor logging is enabled for this logger.voidlog(String[] args) Log a message for the Application Monitor.voidlog(String name, String value) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10, String name11, String value11) Log a message for the Application Monitor.voidlog(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10, String name11, String value11, String name12, String value12) Log a message for the Application Monitor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LoggerMonitor2
public LoggerMonitor2(org.apache.logging.log4j.Logger log) Constructor.
-
-
Method Details
-
log
public void log(String[] args) Log a message for the Application Monitor. Array element args[0] will be the first name, args[1] will be the first value, arg[2] will be the second name...and so on. An even number must be supplied. String elements should not contain any quote marks.- Parameters:
args- array of name/value pairs for the monitor message.
-
createLogMessage
public static final String createLogMessage(String[] args) throws IllegalArgumentException Formats a message which can be logged for consumption by a monitor.- Parameters:
args- Array of name/value pairs for the monitor message.- Returns:
- Formatted message.
- Throws:
IllegalArgumentException- if anullarray or an array with an odd number of elements is specified.
-
log
public void log(String name, String value) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name- name of a name/value pair.value- value of a name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.name8- Name of the ninth name/value pair.value8- Value of the ninth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.name8- Name of the ninth name/value pair.value8- Value of the ninth name/value pair.name9- Name of the tenth name/value pair.value9- Value of the tenth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.name8- Name of the ninth name/value pair.value8- Value of the ninth name/value pair.name9- Name of the tenth name/value pair.value9- Value of the tenth name/value pair.name10- Name of the eleventh name/value pair.value10- Value of the eleventh name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10, String name11, String value11) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.name8- Name of the ninth name/value pair.value8- Value of the ninth name/value pair.name9- Name of the tenth name/value pair.value9- Value of the tenth name/value pair.name10- Name of the eleventh name/value pair.value10- Value of the eleventh name/value pair.name11- Name of the twelth name/value pair.value11- Value of the twelth name/value pair.
-
log
public void log(String name0, String value0, String name1, String value1, String name2, String value2, String name3, String value3, String name4, String value4, String name5, String value5, String name6, String value6, String name7, String value7, String name8, String value8, String name9, String value9, String name10, String value10, String name11, String value11, String name12, String value12) Log a message for the Application Monitor. Parameters should not contain any quote marks.- Parameters:
name0- Name of the first name/value pair.value0- Value of the first name/value pair.name1- Name of the second name/value pair.value1- Value of the second name/value pair.name2- Name of the third name/value pair.value2- Value of the third name/value pair.name3- Name of the fourth name/value pair.value3- Value of the fourth name/value pair.name4- Name of the fifth name/value pair.value4- Value of the fifth name/value pair.name5- Name of the sixth name/value pair.value5- Value of the sixth name/value pair.name6- Name of the seventh name/value pair.value6- Value of the seventh name/value pair.name7- Name of the eighth name/value pair.value7- Value of the eighth name/value pair.name8- Name of the ninth name/value pair.value8- Value of the ninth name/value pair.name9- Name of the tenth name/value pair.value9- Value of the tenth name/value pair.name10- Name of the eleventh name/value pair.value10- Value of the eleventh name/value pair.name11- Name of the twelth name/value pair.value11- Value of the twelth name/value pair.name12- Name of the thirteenth name/value pair.value12- Value of the thirteenth name/value pair.
-
isLoggingEnabled
public boolean isLoggingEnabled()Determine if system monitor logging is enabled for this logger.
-