Learn R Programming

Rserve (version 1.8-15)

ulog: Micro Logging

Description

ulog logs the supplied message using the ulog facility which typically corresponsed to syslog. See ulog Rserve configuration for the various endpoints supported by ulog (local, UDP/TCP remote, ...).

This function is guaranteed to be silent regardless of the ulog setting and is intended to have minimal performance impact.

Note: if Rserve is compiled with -DULOG_STDERR (also implied in the debug build) then ulog messages are also emitted on stderr with "ULOG: " prefix.

Please note that this ulog function is governed by the Rserve settings, and NOT the ulog package settings. The latter is a general port of the ulog logging facility to R, while Rserve::ulog is specific to to the Rserve process.

Usage

ulog(...)

Value

The logged string constructed from the message, invisibly

Arguments

...

message to log

Author

Simon Urbanek

Examples

Run this code
ulog("INFO: My application started")

Run the code above in your browser using DataLab