loggit {pgUtils} | R Documentation |
loggit
this function writes the desired information into a log file. The log file can be specifyed with the system variable “log.file” (simply write log.file <- "YourLogFile.txt"
in your R console). When the system variable “log.level” is “DEBUG” everytime the function is called the information is written to the log file, if the logging level was set to “ERROR” only those calls are written into the log file, that produced a SQL error. In all functions of this package the loggit function is only called if the system variable do.log
is set to TRUE. Together with the information submitted, the date and time of the call will be written to the log file.
loggit(resultSet,call="")
resultSet |
The result set that is returned by every query that is sent to the database (eg with the dbSendQuery command). |
call |
Some optional description that should be appended. |
Johannes Rainer