public final class FormatHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
formatExceptionForLog(Throwable exception,
String firstMessage,
Object... args)
Format exception for logging.
|
static String |
formatGraphMessage(String message,
String graphUuid,
boolean isInCleanDB,
Object... args)
Format graph message fro logging.
|
static String |
getTypedW3CDTF(Date date)
Transform date to W3CDTF format.
|
static String |
getTypedW3CDTFCurrent()
Get current date in W3CDTF format.
|
public static String getTypedW3CDTF(Date date)
date
- The time value to be formatted into a W3CDTF format.public static String getTypedW3CDTFCurrent()
public static String formatExceptionForLog(Throwable exception, String firstMessage, Object... args)
exception
- exception for loggingfirstMessage
- prefaceargs
- preface argspublic static String formatGraphMessage(String message, String graphUuid, boolean isInCleanDB, Object... args)
message
- main message for logginggraphUuid
- graph uuidisInCleanDB
- graph is in clean databaseargs
- message argsCopyright © 2013. All Rights Reserved.