-
- All Implemented Interfaces:
-
com.king.logx.logger.ILogger
public class LogX.Companion implements ILogger
-
-
Method Summary
Modifier and Type Method Description final UnitsetLogger(Logger logger)Set up a logger. ILoggeroffset(Integer methodOffset)Set a one-time method trace offset for use on the next logging call. ILoggertag(String tag)Set a one-time tag for use on the next logging call. Unitv(String message, Object args)Log a verbose message with optional format args. Unitv(Throwable t, String message, Object args)Log a verbose exception and a message with optional format args. Unitv(Throwable t)Log a verbose exception. Unitd(String message, Object args)Log a debug message with optional format args. Unitd(Throwable t, String message, Object args)Log a debug exception and a message with optional format args. Unitd(Throwable t)Log a debug exception. Uniti(String message, Object args)Log an info message with optional format args. Uniti(Throwable t, String message, Object args)Log an info exception and a message with optional format args. Uniti(Throwable t)Log an info exception. Unitw(String message, Object args)Log a warning message with optional format args. Unitw(Throwable t, String message, Object args)Log a warning exception and a message with optional format args. Unitw(Throwable t)Log a warning exception. Unite(String message, Object args)Log an error message with optional format args. Unite(Throwable t, String message, Object args)Log an error exception and a message with optional format args. Unite(Throwable t)Log an error exception. Unitwtf(String message, Object args)Log an assert message with optional format args. Unitwtf(Throwable t, String message, Object args)Log an assert exception and a message with optional format args. Unitwtf(Throwable t)Log an assert exception. Unitlog(Integer priority, String message)Log at priorityan message.Unitlog(Integer priority, Throwable t, String message)Log at priorityan exception and a message.Unitlog(Integer priority, Throwable t)Log at priorityan exception.final IntegergetVERBOSE()Priority constant for the println method; use Log.v. final IntegergetDEBUG()Priority constant for the println method; use Log.d. final IntegergetINFO()Priority constant for the println method; use Log.i. final IntegergetWARN()Priority constant for the println method; use Log.w. final IntegergetERROR()Priority constant for the println method; use Log.e. final IntegergetASSERT()Priority constant for the println method.use Log.wtf. -
-
Method Detail
-
offset
ILogger offset(Integer methodOffset)
Set a one-time method trace offset for use on the next logging call.
-
v
Unit v(Throwable t, String message, Object args)
Log a verbose exception and a message with optional format args.
-
d
Unit d(Throwable t, String message, Object args)
Log a debug exception and a message with optional format args.
-
i
Unit i(Throwable t, String message, Object args)
Log an info exception and a message with optional format args.
-
w
Unit w(Throwable t, String message, Object args)
Log a warning exception and a message with optional format args.
-
e
Unit e(Throwable t, String message, Object args)
Log an error exception and a message with optional format args.
-
wtf
Unit wtf(Throwable t, String message, Object args)
Log an assert exception and a message with optional format args.
-
log
Unit log(Integer priority, Throwable t, String message)
Log at
priorityan exception and a message.
-
getVERBOSE
final Integer getVERBOSE()
Priority constant for the println method; use Log.v.
-
-
-
-