org.kuali.common.util
Class LoggerUtils
java.lang.Object
org.kuali.common.util.LoggerUtils
public class LoggerUtils
- extends Object
Method Summary |
static String |
getHeader(List<String> columns,
int[] padding,
boolean leftAlign)
|
static String |
getLogMsg(List<String> includes,
List<String> excludes)
|
static String |
getLogMsg(StringFilter filter)
|
static Object[] |
getLogMsgArgs(StringFilter filter)
|
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 |
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,
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 |
updateArgsList(List<Object[]> argsList,
int[] padding,
boolean leftAlign)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOGGER_UTILS_LOGGER
public static final org.slf4j.Logger LOGGER_UTILS_LOGGER
LoggerUtils
public LoggerUtils()
getLogMsg
public static String getLogMsg(List<String> includes,
List<String> excludes)
getLogMsg
public static String getLogMsg(StringFilter filter)
getLogMsgArgs
public static Object[] getLogMsgArgs(StringFilter filter)
log
public static void log(LogMsg msg,
org.slf4j.Logger logger)
getPadding
public static int[] getPadding(List<String> columns,
List<Object[]> argsList)
getHeader
public static String getHeader(List<String> columns,
int[] padding,
boolean leftAlign)
updateArgsList
public static void updateArgsList(List<Object[]> argsList,
int[] padding,
boolean leftAlign)
logTable
public static void logTable(List<String> columns,
List<Object[]> rows,
LoggerLevel level,
org.slf4j.Logger logger)
logTable
public static void logTable(List<String> columns,
List<Object[]> rows,
LoggerLevel level,
org.slf4j.Logger logger,
boolean leftAlign)
logTable
public static void logTable(List<String> columns,
List<Object[]> rows)
getTable
public static String getTable(LogTableContext context)
logTable
public static void logTable(LogTableContext context)
getTableString
protected static String getTableString(int rows,
int cols)
getProperties
protected static Properties getProperties(List<Object[]> rows)
getPropertyKey
protected static String getPropertyKey(int row,
int col)
logLines
public static void logLines(String s,
org.slf4j.Logger logger,
LoggerLevel level)
logMsg
public static final void logMsg(String msg,
Object[] args,
org.slf4j.Logger logger,
LoggerLevel level)
logMsg
public static final void logMsg(String msg,
org.slf4j.Logger logger,
LoggerLevel level)
getUsername
public static final String getUsername(String username)
getNullAsNone
public static final String getNullAsNone(String string)
getPassword
public static final String getPassword(String username,
String password)
isNullOrNone
public static boolean isNullOrNone(String s)
getPassword
public static final String getPassword(String username,
String password,
Obscurer obscurer)
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.