Skip to content

Instantly share code, notes, and snippets.

@neomatrix369
Created October 18, 2013 16:33
Show Gist options
  • Select an option

  • Save neomatrix369/7044160 to your computer and use it in GitHub Desktop.

Select an option

Save neomatrix369/7044160 to your computer and use it in GitHub Desktop.
R script - basic logging functions [Unrefactored]
log.INFO <- function(message) {
print(paste(date(), "[INFO]", message))
}
log.WARNING <- function(message) {
print(paste(date(), "[WARNING]", message))
}
log.DEBUG <- function(message) {
print(paste(date(), "[DEBUG]", message))
}
log.ERROR <- function(message) {
print(paste(date(), "[ERROR]", message))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment