public class LogFormatter extends Object
| Constructor and Description |
|---|
LogFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static String |
convertPropsToString(Properties prop)
Helper method to convert properties to string.
|
static String |
convertToString(byte[] byteArray)
Helper method to convert a byte arror to string.
|
static String |
convertXidArrayToString(Xid[] xidArray)
Converts an array of xids to string that can be printed.
|
static String |
getLocalizedMessage(Logger logger,
String key)
getLocalizedMessage is used to localize the messages being used in
exceptions
|
static String |
getLocalizedMessage(Logger logger,
String key,
Object[] args)
getLocalizedMessage is used to localize the messages being used in
exceptions with arguments inserted appropriately.
|
public static String convertToString(byte[] byteArray)
byteArray - a byte[] valueString valuepublic static String convertXidArrayToString(Xid[] xidArray)
xidArray - a Xid[] valueString valuepublic static String convertPropsToString(Properties prop)
prop - a Properties valueString valuepublic static String getLocalizedMessage(Logger logger, String key)
Copyright © 2019. All rights reserved.