Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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()
```