Log

open class Log(source)

To avoid dependencies on logging frameworks, we have invented yet another logging framework :-)

See a blog about this

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Adapter
Link copied to clipboard
This adapter logs nothing.
Link copied to clipboard
This adapter logs to standard out and standard error.

Functions

Link copied to clipboard
open fun error(throwable: Throwable)
For drawing attention to an error.
open fun error(format: String, args: Array<Supplier<Any>>)
open fun error(throwable: Throwable, format: String, args: Array<Supplier<Any>>)
For drawing attention to an error that you don't have an exception for.
Link copied to clipboard
open fun info(format: String, args: Array<Supplier<Any>>)
For logging things that are nice to see scrolling by.
Link copied to clipboard
open fun setAdapter(adapter: Log.Adapter)
Change how logging is handled.
Link copied to clipboard
open fun trace(format: String, args: Array<Supplier<Any>>)
For logging information that may help solving a problem.