https://github.com/richfitz/loggr.redis
Redis support for loggr
https://github.com/richfitz/loggr.redis
Last synced: over 1 year ago
JSON representation
Redis support for loggr
- Host: GitHub
- URL: https://github.com/richfitz/loggr.redis
- Owner: richfitz
- License: other
- Created: 2015-06-10T04:44:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T10:15:11.000Z (about 11 years ago)
- Last Synced: 2025-01-20T22:53:56.047Z (over 1 year ago)
- Language: R
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# loggr.redis
[](https://travis-ci.org/richfitz/loggr.redis)
Redis support for [`loggr`](https://github.com/smbache/loggr)
```r
con <- RedisAPI::hiredis()
loggr.redis::log_redis(con, "mykey")
jsonlite::fromJSON(con$LINDEX("mykey", -1))
# $level
# [1] "INFO"
#
# $message
# [1] "Activating logging to 127.0.0.1:6379:mykey"
#
# $time
# [1] "2015-06-10 18:39:03"
```
## Installation
Requires two (currently non-CRAN packages)
- [`loggr`](https://github.com/smbache/loggr)
- [`RedisAPI`](https://github.com/ropensci/RedisAPI)
Install with
```r
devtools::install_github(c("smbache/loggr", "ropensci/RedisAPI"))
```