public class LogUtils extends Object
| Constructor and Description |
|---|
LogUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
displayXml(org.apache.commons.logging.Log log,
Object xmlObject)
Serialize an XML object (Document or Element) to the log
|
static void |
displayXml(org.apache.commons.logging.Log log,
String errorText,
Object xmlObject)
Serialize an XML object (Document or Element) to the log (with an
optional warning header)
|
static org.apache.commons.logging.Log |
getLog(Class logClass)
Get a Log instance
|
static org.apache.commons.logging.Log |
getLog(String logName)
Get a Log instance
|
static void |
main(String[] args) |
public static org.apache.commons.logging.Log getLog(Class logClass)
logClass - Java Class being loggedpublic static org.apache.commons.logging.Log getLog(String logName)
logName - Name being loggedpublic static void displayXml(org.apache.commons.logging.Log log,
Object xmlObject)
log - Apache Log objectrecordElement - The XML object to disolay (Document, Element)public static void displayXml(org.apache.commons.logging.Log log,
String errorText,
Object xmlObject)
log - Apache Log objecterrorText - Error message (null for none)recordElement - The XML object to disolay (Document, Element)public static void main(String[] args)
Copyright © 2004–2016 Indiana University Library Information Technology. All rights reserved.