public class Logger
extends java.lang.Object
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(java.lang.String format,
java.lang.Object[] objs)
Formats a message.
|
static java.lang.String |
formatDate(java.util.Date d)
Convert a Date to a timestamp String.
|
static java.lang.String |
getTimeStamp()
Gets a String representation of the current time.
|
static void |
put(java.io.PrintWriter log,
java.lang.String msg)
Logs a message to the specified log destination.
|
static void |
put(java.io.PrintWriter log,
java.lang.String msg,
java.lang.Throwable exception)
Logs a message and an exception to the specified log destination.
|
static void |
put(java.io.PrintWriter log,
java.lang.Throwable exception)
Logs an exception to the specified log destination.
|
static void |
put(java.lang.String msg)
Logs a message to the static log destination.
|
static void |
put(java.lang.String msg,
java.lang.Throwable exception)
Logs a message and an exception to the static log destination.
|
static void |
put(java.lang.Throwable exception)
Logs an exception to the static log destination.
|
public static java.lang.String getTimeStamp()
public static java.lang.String formatDate(java.util.Date d)
d - a Date to format as a timestamp String.public static void put(java.lang.String msg)
msg - the actual message to logpublic static void put(java.io.PrintWriter log,
java.lang.String msg)
log - the PrintWriter that the message will be written to.msg - the actual message to logpublic static void put(java.lang.Throwable exception)
exception - the actual Exception to logpublic static void put(java.io.PrintWriter log,
java.lang.Throwable exception)
log - the PrintWriter that the message will be written to.exception - the actual Exception to logpublic static void put(java.lang.String msg,
java.lang.Throwable exception)
msg - the actual message to logexception - the actual Exception to logpublic static void put(java.io.PrintWriter log,
java.lang.String msg,
java.lang.Throwable exception)
log - the PrintWriter that the message will be written to. If null then the default stdout writer is used.msg - the actual message to logexception - the actual Exception to logpublic static java.lang.String format(java.lang.String format,
java.lang.Object[] objs)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.