public class LoggerUtils extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOGGER_UTILS_LOGGER |
Constructor and Description |
---|
LoggerUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getHeader(List<String> columns,
int[] padding,
boolean leftAlign) |
static String |
getLogMsg(List<String> includes,
List<String> excludes) |
static String |
getLogMsg(StringFilter filter)
Deprecated.
|
static Object[] |
getLogMsgArgs(StringFilter filter)
Deprecated.
|
static String |
getNullAsNone(String string) |
static int[] |
getPadding(List<String> columns,
List<Object[]> argsList) |
static String |
getPassword(String username,
String password) |
static String |
getPassword(String username,
String password,
Obscurer obscurer) |
protected static Properties |
getProperties(List<Object[]> rows) |
protected static String |
getPropertyKey(int row,
int col) |
static String |
getTable(LogTableContext context) |
protected static String |
getTableString(int rows,
int cols) |
static String |
getUsername(String username) |
static boolean |
isNullOrNone(String s) |
static void |
log(LogMsg msg,
org.slf4j.Logger logger) |
static void |
log(String msg,
List<Object> args,
org.slf4j.Logger logger,
LoggerLevel level) |
static void |
logLines(String s,
org.slf4j.Logger logger,
LoggerLevel level) |
static void |
logMsg(String msg,
org.slf4j.Logger logger,
LoggerLevel level) |
static void |
logMsg(String msg,
Object[] args,
org.slf4j.Logger logger,
LoggerLevel level) |
static void |
logTable(List<String> columns,
List<Object[]> rows) |
static void |
logTable(List<String> columns,
List<Object[]> rows,
org.slf4j.Logger logger) |
static void |
logTable(List<String> columns,
List<Object[]> rows,
LoggerLevel level,
org.slf4j.Logger logger) |
static void |
logTable(List<String> columns,
List<Object[]> rows,
LoggerLevel level,
org.slf4j.Logger logger,
boolean leftAlign) |
static void |
logTable(LogTableContext context) |
static void |
logTable(String title,
List<String> columns,
List<Object[]> rows) |
static org.slf4j.Logger |
make()
Convenience method for obtaining a logger (borrowed from the JBoss crew)
|
static void |
updateArgsList(List<Object[]> argsList,
int[] padding,
boolean leftAlign) |
public static final org.slf4j.Logger LOGGER_UTILS_LOGGER
public LoggerUtils()
public static org.slf4j.Logger make()
Convenience method for obtaining a logger (borrowed from the JBoss crew)
private static final Logger logger = LoggerUtils.make();
@Deprecated public static String getLogMsg(StringFilter filter)
@Deprecated public static Object[] getLogMsgArgs(StringFilter filter)
public static int[] getPadding(List<String> columns, List<Object[]> argsList)
public static void updateArgsList(List<Object[]> argsList, int[] padding, boolean leftAlign)
public static void logTable(List<String> columns, List<Object[]> rows, org.slf4j.Logger logger)
public static void logTable(List<String> columns, List<Object[]> rows, LoggerLevel level, org.slf4j.Logger logger)
public static void logTable(List<String> columns, List<Object[]> rows, LoggerLevel level, org.slf4j.Logger logger, boolean leftAlign)
public static String getTable(LogTableContext context)
public static void logTable(LogTableContext context)
protected static String getTableString(int rows, int cols)
protected static Properties getProperties(List<Object[]> rows)
protected static String getPropertyKey(int row, int col)
public static void logLines(String s, org.slf4j.Logger logger, LoggerLevel level)
public static final void log(String msg, List<Object> args, org.slf4j.Logger logger, LoggerLevel level)
public static final void logMsg(String msg, Object[] args, org.slf4j.Logger logger, LoggerLevel level)
public static final void logMsg(String msg, org.slf4j.Logger logger, LoggerLevel level)
public static final String getUsername(String username)
public static final String getNullAsNone(String string)
public static final String getPassword(String username, String password)
public static boolean isNullOrNone(String s)
public static final String getPassword(String username, String password, Obscurer obscurer)
Copyright © 2010–2014 The Kuali Foundation. All rights reserved.