1 23 24 package com.lutris.logging; 25 26 27 import org.enhydra.xml.xmlc.XMLCLogger; 28 29 32 public class EnhydraXMLCLogger implements XMLCLogger { 33 34 private final com.lutris.logging.LogChannel m_logChannel; 36 37 41 public EnhydraXMLCLogger(LogChannel logChannel) { 42 43 m_logChannel = logChannel; 44 } 45 46 49 public boolean infoEnabled() { 50 return m_logChannel.isEnabled(Logger.INFO); 51 } 52 53 56 public void logInfo(String msg) { 57 m_logChannel.write( Logger.INFO, msg ); 58 } 59 60 63 public void logInfo(String msg, 64 Throwable except) { 65 m_logChannel.write( Logger.INFO, msg, except ); 66 } 67 68 71 public boolean errorEnabled() { 72 return m_logChannel.isEnabled(Logger.ERROR); 73 } 74 75 78 public void logError(String msg) { 79 m_logChannel.write( Logger.ERROR, msg ); 80 } 81 82 85 public void logError(String msg, 86 Throwable except) { 87 m_logChannel.write( Logger.ERROR, msg, except ); 88 } 89 90 93 public boolean debugEnabled() { 94 return m_logChannel.isEnabled(Logger.DEBUG); 95 } 96 97 100 public void logDebug(String msg) { 101 m_logChannel.write( Logger.DEBUG, msg ); 102 } 103 104 107 public void logDebug(String msg, 108 Throwable except) { 109 m_logChannel.write( Logger.DEBUG, msg, except ); 110 } 111 112 } 113 | Popular Tags |