loggit {pgUtils}R Documentation

Logging errors or debuggin information

Description

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.

Usage

loggit(resultSet,call="")

Arguments

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.

Details

Author(s)

Johannes Rainer

References

See Also

Examples






[Package pgUtils version 1.10.0 Index]