All Projects → atheriel → Rsyslog

atheriel / Rsyslog

An R interface to syslog, the POSIX system logger API

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Rsyslog

Syslog Ng
syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, queueing, SQL & NoSQL.
Stars: ✭ 1,555 (+7304.76%)
Mutual labels:  logging, syslog
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (+552.38%)
Mutual labels:  logging, syslog
Docker Logger
Logs collector for docker
Stars: ✭ 126 (+500%)
Mutual labels:  logging, syslog
Logtrail
Kibana plugin to view, search & live tail log events
Stars: ✭ 1,343 (+6295.24%)
Mutual labels:  logging, syslog
Python Coloredlogs
Colored terminal output for Python's logging module
Stars: ✭ 408 (+1842.86%)
Mutual labels:  logging, syslog
Punt
Punt is a tiny and lightweight daemon which helps ship logs to Elasticsearch.
Stars: ✭ 98 (+366.67%)
Mutual labels:  logging, syslog
Documentation
Stars: ✭ 133 (+533.33%)
Mutual labels:  logging, syslog
Captainslog
A Syslog Protocol Parser
Stars: ✭ 130 (+519.05%)
Mutual labels:  logging, syslog
Go Syslog
Blazing fast syslog parser
Stars: ✭ 370 (+1661.9%)
Mutual labels:  logging, syslog
Analog
PHP logging library that is highly extendable and simple to use.
Stars: ✭ 314 (+1395.24%)
Mutual labels:  logging, syslog
Logbert
Logbert is an advanced log message viewer for log4net, log4j and others.
Stars: ✭ 70 (+233.33%)
Mutual labels:  logging, syslog
Semantic logger
Semantic Logger is a feature rich logging framework, and replacement for existing Ruby & Rails loggers.
Stars: ✭ 611 (+2809.52%)
Mutual labels:  logging, syslog
Nim Morelogging
Logging library for Nim
Stars: ✭ 29 (+38.1%)
Mutual labels:  logging, syslog
Rsyslog
a Rocket-fast SYStem for LOG processing
Stars: ✭ 1,385 (+6495.24%)
Mutual labels:  logging, syslog
Console
OS X console application.
Stars: ✭ 298 (+1319.05%)
Mutual labels:  logging, syslog
Flowgger
A fast data collector in Rust
Stars: ✭ 606 (+2785.71%)
Mutual labels:  logging, syslog
Graylog2 Server
Free and open source log management
Stars: ✭ 5,952 (+28242.86%)
Mutual labels:  logging, syslog
Discord Scripts
A collection of scripts to enhance your Discord experience.
Stars: ✭ 26 (+23.81%)
Mutual labels:  logging
Trail
Trail is a simple logging system for Java and Android. Create logs using the same API and the library will detect automatically in which platform the code is running.
Stars: ✭ 13 (-38.1%)
Mutual labels:  logging
Shbib
A BibTeX-centric bibliography manager written in POSIX shell
Stars: ✭ 26 (+23.81%)
Mutual labels:  posix

rsyslog

CRAN status

rsyslog is a very simple R package to interface with syslog -- a system logging interface available on all POSIX-compatible operating systems.

Installation

To get the latest stable version from CRAN:

install.packages("rsyslog")

If you need access to in-development features, you can install the package directly from GitHub:

# install.packages("devtools")
devtools::install_github("atheriel/rsyslog")

Usage

Using rsyslog closely resembles using the syslog API, so it should be familiar if you have previous experience with syslog.

Messages are sent to the system log with the syslog() function. You can also (optionally) configure how messages are written with open_syslog() and close any open connection with close_syslog().

open_syslog("my_script")
syslog("Running script.", level = "INFO")
syslog("Possible issue.", level = "WARNING")
close_syslog()

To see what this has printed to the system log on systemd-based Linux distributions (including Ubuntu), you can use the journalctl program:

$ journalctl --identifier my_script
-- Logs begin at Mon 2018-06-25 14:48:12 UTC, end at Mon 2018-06-25 15:35:02 UTC. --
Jun 25 15:10:18 user my_script[4467]: Running script.
Jun 25 15:10:18 user my_script[4467]: Possible issue.

Opening and closing the system log is not strictly necessary (though it is good practice). The following will work as well:

# Uses the process name (likely "R" or "rsession") as the identifier.
syslog("Hello from R!", level = "WARNING")

If you wish to control the visibility of messages by priority level (for example, to hide debug messages), use set_syslog_mask():

open_syslog("my_script")
syslog("This message is visible.", level = "INFO")
set_syslog_mask("WARNING")
syslog("No longer visible.", level = "INFO")
syslog("Still visible.", level = "WARNING")
close_syslog()

License

The package is licensed under the GPL, version 2 or later.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].