log/zlog#
type category
A logging category.
fun category(Name?: string): category
Returns a new logging category. If
Name
is omitted, a name will be inferred from the calling function.meth (Category: category) :: (Level: string): logger
Returns the logger for
Category
with levelLevel
.
type logger < function
A logger (category + level). Calling a logger generates a log entry with the supplied arguments.