You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
378 B
13 lines
378 B
#' Log a message to the macOS logging system (searchable from Console.app)
|
|
#'
|
|
#' @param app name of the "application" (makes it easier to search for your log entries)
|
|
#' @param message text to write to the log
|
|
#' @export
|
|
logger <- function(message, app = "mactheknife") {
|
|
|
|
system2(
|
|
command = "/usr/bin/logger",
|
|
args = sprintf("%s: %s", app, message[1])
|
|
) -> catch
|
|
|
|
}
|