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 |
getMsg(int count)
|
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)
|
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,
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 |
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 |
LoggerUtils
public LoggerUtils()
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)
getMsg
public static String getMsg(int count)
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)
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.