Function produces a text file (custom message log).

messageLog(
  log.message,
        log.directory = "Logs",
        logfile = NULL,
        add.date = TRUE,
        appendLF = TRUE)

Arguments

log.message

Text string to be exported to a text file log.

log.directory

File path where log file should be saved.

logfile

Name of file to be saved. If NULL, then file will be named as messageLog_*DATE*.txt, where *DATE* is the current date.

add.date

TRUE. Adds the date to a user provided (non-NULL) logfile name.

appendLF

TRUE. Adds log message to a file (if it already exists).

Details

Creates (or adds to) a log file with the text given in the "log.message" argument.

Value

A text file with name provided in "logfile", saved in the "log.directory".