Constructor and Description |
---|
VersionLoggerUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
createVersionMessage(Class<?> clazz)
Creates the version message for the given class using default format.
|
static String |
createVersionMessage(Class<?> clazz,
String format)
Creates the version message for the class based on the given format.
|
static void |
logVersionInformation(Class<?> clazz)
Logs version information for the given class, using the default format.
|
static void |
logVersionInformation(Class<?> clazz,
String formatPattern)
By inspecting specified Class, getting package and specification version/implementation version
we write a log message with the provided message format.
|
static void |
logVersionInformation(Class<?> clazz,
String formatPattern,
String logCategory)
By inspecting specified Class, getting package and specification version/implementation version
we write a log message with the provided message format.
|
public static void logVersionInformation(Class<?> clazz, String formatPattern, String logCategory)
clazz
- the class where package will be determined from.formatPattern
- the string format.logCategory
- the category to log against.public static void logVersionInformation(Class<?> clazz, String formatPattern)
clazz
- the class where package will be determined from.formatPattern
- the string format.public static void logVersionInformation(Class<?> clazz)
clazz
- the class where package will be determiend from.public static String createVersionMessage(Class<?> clazz, String format)
clazz
- the class where package will be determiend from.format
- to compile against, should have 2 format markers.Copyright © 2012 Seam Framework. All Rights Reserved.