of

@JvmStatic
inline fun of(tag: String?): Log.Logger(source)

Create a new Logger instance. If a Logger instance already exists for the provided tag and null domain, then that is returned instead.

Return

A Logger instance.

Parameters

tag

The tag to use when logging.

See also

Throws

IllegalArgumentException

If checkTag fails.

NullPointerException

If tag is null.


@JvmStatic
fun of(tag: String?, domain: String?): Log.Logger(source)

Create a new Logger instance. If a Logger instance already exists for the provided domain and tag, then that is returned instead.

Return

A Logger instance.

Parameters

domain

The domain to use when logging or null.

tag

The tag to use when logging.

See also

Throws

IllegalArgumentException

If checkDomain or checkTag fail.

NullPointerException

If tag is null.