类 SLogService
- java.lang.Object
-
- cn.wizzer.app.web.commons.slog.SLogService
-
-
构造器概要
构造器 构造器 说明 SLogService()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 voidasync(cn.wizzer.app.sys.modules.models.Sys_log syslog)异步插入日志voidclose()voidinit()voidlog(String type, String tag, String source, String msg, boolean async, String param, String result)voidlog(String t, String type, String tag, String source, org.nutz.lang.segment.CharSegment seg, Map<String,org.nutz.el.El> els, boolean param, boolean result, boolean async, Object[] args, Object re, Method method, Object obj, Throwable e)本方法通常由aop拦截器调用.static cn.wizzer.app.sys.modules.models.Sys_logmakeLog(String type, String tag, String source, String msg, String param, String result)voidrun()voidsync(cn.wizzer.app.sys.modules.models.Sys_log syslog)同步插入日志
-
-
-
方法详细资料
-
async
public void async(cn.wizzer.app.sys.modules.models.Sys_log syslog)
异步插入日志- 参数:
syslog- 日志对象
-
sync
public void sync(cn.wizzer.app.sys.modules.models.Sys_log syslog)
同步插入日志- 参数:
syslog- 日志对象
-
log
public void log(String t, String type, String tag, String source, org.nutz.lang.segment.CharSegment seg, Map<String,org.nutz.el.El> els, boolean param, boolean result, boolean async, Object[] args, Object re, Method method, Object obj, Throwable e)
本方法通常由aop拦截器调用.- 参数:
t- 日志类型tag- 标签source- 源码位置els- 消息模板的EL表达式预处理表param- 是否异步插入result- 是否异步插入async- 是否异步插入args- 方法参数re- 方法返回值method- 方法实例obj- 被拦截的对象e- 异常对象
-
log
public void log(String type, String tag, String source, String msg, boolean async, String param, String result)
-
init
public void init()
-
close
public void close() throws InterruptedException
-
-