对比新文件 |
| | |
| | | package com.doumee.config.mybatis; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.ibatis.logging.stdout.StdOutImpl; |
| | | |
| | | @Slf4j |
| | | public class DmStdOutImpl extends StdOutImpl { |
| | | |
| | | public DmStdOutImpl(String clazz) { |
| | | super(clazz); |
| | | } |
| | | |
| | | public boolean isDebugEnabled() { |
| | | return true; |
| | | } |
| | | |
| | | public boolean isTraceEnabled() { |
| | | return true; |
| | | } |
| | | |
| | | public void error(String s, Throwable e) { |
| | | log.error(s); |
| | | System.err.println(s); |
| | | e.printStackTrace(System.err); |
| | | } |
| | | |
| | | public void error(String s) { |
| | | log.error(s); |
| | | System.err.println(s); |
| | | } |
| | | |
| | | public void debug(String s) { |
| | | log.info(s); |
| | | System.out.println(s); |
| | | } |
| | | |
| | | public void trace(String s) { |
| | | log.trace(s); |
| | | System.out.println(s); |
| | | } |
| | | |
| | | public void warn(String s) { |
| | | log.warn(s); |
| | | System.out.println(s); |
| | | } |
| | | } |