Skip to contents

The `writeToLog` function is used to append log messages to a log file. The path for the logfile has to be initialized by the function initLogfile

Usage

writeToLog(type, msg, filename = NULL)

Arguments

type

The type of message (e.g., Error, Info).

msg

The message to be logged.

filename

The name of the log file.

See also

Examples

if (FALSE) { # \dontrun{
# Write a log message
writeToLog(type = "Info", msg = "This is an information message", filename = "run.log")
} # }