-
public final class LogMain entry for this library. "Without loss of generality"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classLog.LogBuilderpublic classLog.Companion
-
Method Summary
Modifier and Type Method Description final Unitr(Integer logLevel)Disposes this log object and returns underlying stringBuilder to the pool. final Logt(Throwable throwable)Shortcut for throwable final Logevent(Object object, String event)Special case log:<br></br> simpleclassname@hash event<br></br> For example: MainActivity@4fad3412 onCreate<br></br> Convenient way to log lifecycle of object(activity,fragment, etc) final Lognl()Appends newLine sequence to current statement.<br></br> newLine sequence can be configured at startup by setting system property wlog. final Loga(Boolean value)Appends boolean value to current log statement final Loga(Character value)Appends char value to current log statement final Loga(Long value)Appends long value to current log statement final Loga(Float value)Appends float value to current log statement final Loga(Double value)Appends double value to current log statement final Loga(CharArray value)Appends char[] value to current log statement final Loga(Integer value, Integer radix)final Loga(Object object)Appends Object#toStringto current log statementfinal <T extends Any> Loga(Iterable<T> iterable, SequenceFormat format)final <T extends Any, V extends Any> Loga(Map<T, V> map)final Loga(String string)final <T extends Any> Loga(KProperty0<T> property, String divider)final <T extends Any> Loga(Array<T> array, SequenceFormat format)Appends array of objects with specified SequenceFormatter final Logc(Object object)Adds simplified class name to log statement, not Object itself! final StringgetTag()final UnitsetTag(String tag)-
-
Method Detail
-
r
final Unit r(Integer logLevel)
Disposes this log object and returns underlying stringBuilder to the pool.
-
event
final Log event(Object object, String event)
Special case log:<br></br> simpleclassname@hash event<br></br> For example: MainActivity@4fad3412 onCreate<br></br> Convenient way to log lifecycle of object(activity,fragment, etc)
- Parameters:
object- object to logevent- event raised by object
-
nl
final Log nl()
Appends newLine sequence to current statement.<br></br> newLine sequence can be configured at startup by setting system property wlog.newLine, default value is \n
-
a
final Log a(Boolean value)
Appends boolean value to current log statement
- Parameters:
value- boolean value to log
-
a
final Log a(Character value)
Appends char value to current log statement
- Parameters:
value- char value to log
-
a
final Log a(Long value)
Appends long value to current log statement
- Parameters:
value- long value to log
-
a
final Log a(Float value)
Appends float value to current log statement
- Parameters:
value- float value to log
-
a
final Log a(Double value)
Appends double value to current log statement
- Parameters:
value- double value to log
-
a
final Log a(CharArray value)
Appends char[] value to current log statement
- Parameters:
value- char[] value to log, can be null
-
a
final Log a(Object object)
Appends
Object#toStringto current log statement- Parameters:
object- object to log, can be null
-
a
final <T extends Any> Log a(Array<T> array, SequenceFormat format)
Appends array of objects with specified SequenceFormatter
- Parameters:
array- array of objectsformat- SequenceFormat
-
c
final Log c(Object object)
Adds simplified class name to log statement, not Object itself!<br></br> NOTE: anonymous classes should override
toString()method which should return recognizable string- Parameters:
object- object which class name will be logged
-
-
-
-