For internal use. Add text to a logger

writeLog(logger, ..., type = "default")

Arguments

logger

The logger to write the text to. Can be NULL or a function

...

Messages to write to the logger

type

One of default, info, error, warning

Value

No return value, called for side effects