Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ambiorix-web/druid
A logger middleware for ambiorix
https://github.com/ambiorix-web/druid
logging rstats
Last synced: about 1 month ago
JSON representation
A logger middleware for ambiorix
- Host: GitHub
- URL: https://github.com/ambiorix-web/druid
- Owner: ambiorix-web
- License: gpl-2.0
- Created: 2022-02-27T18:35:33.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-27T19:15:11.000Z (almost 3 years ago)
- Last Synced: 2024-09-05T07:01:36.689Z (3 months ago)
- Topics: logging, rstats
- Language: R
- Homepage: https://ambiorix.dev
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - ambiorix-web/druid - A logger middleware for ambiorix (R)
README
# druid
A logger middleware for [ambiorix](https://ambiorix.dev).
## Installation
``` r
# install.packages("devtools")
devtools::install_github("devOpifex/druid")
```## Example
Pass the `druid` function to the `use` method.
``` r
library(druid)library(ambiorix)
app <- Ambiorix$new(log = FALSE)
app$use(
druid(
path_info = TRUE,
remote_port = TRUE
)
)app$get("/", \(req, res){
res$send("Using {ambiorix}!")
})app$start()
```