phoenix-channel / ch.kuon.phoenix / Socket / log

log

fun log(tag: String, msg: String, data: Any? = null): Unit

Log a message.

Override logger in Socket.Option to change this.

Default to stdout.

Parameters

tag - Message tag

msg - Message

data - An object that will be appended to the message, toString() will be called on data.