com.mizar.persistence.jpa.logging
Class MizarTopLinkLogger

java.lang.Object
  extended by com.mizar.persistence.jpa.logging.MizarTopLinkLogger
All Implemented Interfaces:
java.lang.Cloneable, org.eclipse.persistence.logging.SessionLog

public class MizarTopLinkLogger
extends java.lang.Object
implements org.eclipse.persistence.logging.SessionLog


Field Summary
 
Fields inherited from interface org.eclipse.persistence.logging.SessionLog
ALL, ALL_LABEL, CACHE, CONFIG, CONFIG_LABEL, CONNECTION, DMS, EJB, EJB_OR_METADATA, EVENT, FINE, FINE_LABEL, FINER, FINER_LABEL, FINEST, FINEST_LABEL, INFO, INFO_LABEL, loggerCatagories, METAMODEL, OFF, OFF_LABEL, PROPAGATION, PROPERTIES, QUERY, SEQUENCING, SERVER, SEVERE, SEVERE_LABEL, SQL, TRANSACTION, WARNING, WARNING_LABEL, WEAVER
 
Constructor Summary
MizarTopLinkLogger()
           
 
Method Summary
 java.lang.Object clone()
           
 void config(java.lang.String message)
           
 void fine(java.lang.String message)
           
 void finer(java.lang.String message)
           
 void finest(java.lang.String message)
           
 int getLevel()
           
 int getLevel(java.lang.String category)
           
 java.lang.String getLevelString()
           
 org.eclipse.persistence.sessions.Session getSession()
           
 java.io.Writer getWriter()
           
 void info(java.lang.String message)
           
 void log(int level, java.lang.String message)
           
 void log(int level, java.lang.String message, java.lang.Object param)
           
 void log(int level, java.lang.String message, java.lang.Object[] arguments)
           
 void log(int level, java.lang.String message, java.lang.Object[] arguments, boolean shouldTranslate)
           
 void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2)
           
 void log(int level, java.lang.String message, java.lang.Object param1, java.lang.Object param2, java.lang.Object param3)
           
 void log(int i, java.lang.String string, java.lang.Object object, java.lang.Object object1, java.lang.Object object2, java.lang.Object object3)
           
 void log(org.eclipse.persistence.logging.SessionLogEntry entry)
           
 void logThrowable(int level, java.lang.Throwable throwable)
           
 void setLevel(int level)
           
 void setLevel(int level, java.lang.String category)
           
 void setSession(org.eclipse.persistence.sessions.Session session)
           
 void setShouldLogDebug(boolean flag)
           
 void setShouldLogExceptions(boolean flag)
           
 void setShouldLogExceptionStackTrace(boolean flag)
           
 void setShouldPrintConnection(boolean flag)
           
 void setShouldPrintDate(boolean flag)
           
 void setShouldPrintSession(boolean flag)
           
 void setShouldPrintThread(boolean flag)
           
 void setWriter(java.io.Writer log)
           
 void severe(java.lang.String message)
           
 boolean shouldLog(int level)
           
 boolean shouldLog(int level, java.lang.String category)
           
 boolean shouldLogDebug()
           
 boolean shouldLogExceptions()
           
 boolean shouldLogExceptionStackTrace()
           
 boolean shouldPrintConnection()
           
 boolean shouldPrintDate()
           
 boolean shouldPrintSession()
           
 boolean shouldPrintThread()
           
 void throwing(java.lang.Throwable throwable)
           
 void warning(java.lang.String message)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MizarTopLinkLogger

public MizarTopLinkLogger()
Method Detail

log

public void log(org.eclipse.persistence.logging.SessionLogEntry entry)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message,
                java.lang.Object param)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message,
                java.lang.Object param1,
                java.lang.Object param2)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message,
                java.lang.Object param1,
                java.lang.Object param2,
                java.lang.Object param3)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message,
                java.lang.Object[] arguments)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

log

public void log(int level,
                java.lang.String message,
                java.lang.Object[] arguments,
                boolean shouldTranslate)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog

shouldLogExceptionStackTrace

public boolean shouldLogExceptionStackTrace()
Specified by:
shouldLogExceptionStackTrace in interface org.eclipse.persistence.logging.SessionLog

shouldPrintDate

public boolean shouldPrintDate()
Specified by:
shouldPrintDate in interface org.eclipse.persistence.logging.SessionLog

shouldPrintThread

public boolean shouldPrintThread()
Specified by:
shouldPrintThread in interface org.eclipse.persistence.logging.SessionLog

shouldPrintConnection

public boolean shouldPrintConnection()
Specified by:
shouldPrintConnection in interface org.eclipse.persistence.logging.SessionLog

shouldPrintSession

public boolean shouldPrintSession()
Specified by:
shouldPrintSession in interface org.eclipse.persistence.logging.SessionLog

setShouldLogExceptionStackTrace

public void setShouldLogExceptionStackTrace(boolean flag)
Specified by:
setShouldLogExceptionStackTrace in interface org.eclipse.persistence.logging.SessionLog

setShouldPrintDate

public void setShouldPrintDate(boolean flag)
Specified by:
setShouldPrintDate in interface org.eclipse.persistence.logging.SessionLog

setShouldPrintThread

public void setShouldPrintThread(boolean flag)
Specified by:
setShouldPrintThread in interface org.eclipse.persistence.logging.SessionLog

setShouldPrintConnection

public void setShouldPrintConnection(boolean flag)
Specified by:
setShouldPrintConnection in interface org.eclipse.persistence.logging.SessionLog

setShouldPrintSession

public void setShouldPrintSession(boolean flag)
Specified by:
setShouldPrintSession in interface org.eclipse.persistence.logging.SessionLog

getWriter

public java.io.Writer getWriter()
Specified by:
getWriter in interface org.eclipse.persistence.logging.SessionLog

setWriter

public void setWriter(java.io.Writer log)
Specified by:
setWriter in interface org.eclipse.persistence.logging.SessionLog

getLevel

public int getLevel()
Specified by:
getLevel in interface org.eclipse.persistence.logging.SessionLog

getLevel

public int getLevel(java.lang.String category)
Specified by:
getLevel in interface org.eclipse.persistence.logging.SessionLog

setLevel

public void setLevel(int level)
Specified by:
setLevel in interface org.eclipse.persistence.logging.SessionLog

setLevel

public void setLevel(int level,
                     java.lang.String category)
Specified by:
setLevel in interface org.eclipse.persistence.logging.SessionLog

shouldLog

public boolean shouldLog(int level)
Specified by:
shouldLog in interface org.eclipse.persistence.logging.SessionLog

shouldLog

public boolean shouldLog(int level,
                         java.lang.String category)
Specified by:
shouldLog in interface org.eclipse.persistence.logging.SessionLog

throwing

public void throwing(java.lang.Throwable throwable)
Specified by:
throwing in interface org.eclipse.persistence.logging.SessionLog

severe

public void severe(java.lang.String message)
Specified by:
severe in interface org.eclipse.persistence.logging.SessionLog

warning

public void warning(java.lang.String message)
Specified by:
warning in interface org.eclipse.persistence.logging.SessionLog

info

public void info(java.lang.String message)
Specified by:
info in interface org.eclipse.persistence.logging.SessionLog

config

public void config(java.lang.String message)
Specified by:
config in interface org.eclipse.persistence.logging.SessionLog

fine

public void fine(java.lang.String message)
Specified by:
fine in interface org.eclipse.persistence.logging.SessionLog

finer

public void finer(java.lang.String message)
Specified by:
finer in interface org.eclipse.persistence.logging.SessionLog

finest

public void finest(java.lang.String message)
Specified by:
finest in interface org.eclipse.persistence.logging.SessionLog

logThrowable

public void logThrowable(int level,
                         java.lang.Throwable throwable)
Specified by:
logThrowable in interface org.eclipse.persistence.logging.SessionLog

getSession

public org.eclipse.persistence.sessions.Session getSession()
Specified by:
getSession in interface org.eclipse.persistence.logging.SessionLog

setSession

public void setSession(org.eclipse.persistence.sessions.Session session)
Specified by:
setSession in interface org.eclipse.persistence.logging.SessionLog

shouldLogDebug

public boolean shouldLogDebug()

shouldLogExceptions

public boolean shouldLogExceptions()

setShouldLogDebug

public void setShouldLogDebug(boolean flag)

setShouldLogExceptions

public void setShouldLogExceptions(boolean flag)

getLevelString

public java.lang.String getLevelString()
Specified by:
getLevelString in interface org.eclipse.persistence.logging.SessionLog

clone

public java.lang.Object clone()
Specified by:
clone in interface org.eclipse.persistence.logging.SessionLog
Overrides:
clone in class java.lang.Object

log

public void log(int i,
                java.lang.String string,
                java.lang.Object object,
                java.lang.Object object1,
                java.lang.Object object2,
                java.lang.Object object3)
Specified by:
log in interface org.eclipse.persistence.logging.SessionLog