Title: | Logger for 'Ambiorix' |
---|---|
Description: | A logger for 'Ambiorix' applications to log various events. |
Authors: | John Coene [aut, cre], Opifex [fnd, cph] |
Maintainer: | John Coene <[email protected]> |
License: | GPL (>= 2) |
Version: | 0.0.0.9000 |
Built: | 2025-03-12 23:12:29 UTC |
Source: | https://github.com/ambiorix-web/druid |
A soft wrapper around log::Logger to easily log messages for ambiorix applications.
log::Logger
-> Druid
new()
Druid$new( prefix = ">", http_accept = FALSE, http_accept_encoding = FALSE, http_accept_language = FALSE, http_cache_control = FALSE, http_connection = FALSE, http_cookie = FALSE, http_host = FALSE, http_sec_fetch_dest = FALSE, http_sec_fetch_mode = FALSE, http_sec_fetch_site = FALSE, http_sec_fetch_user = FALSE, http_upgrade_insecure_requests = FALSE, http_user_agent = FALSE, path_info = FALSE, query_string = FALSE, remote_addr = FALSE, remote_port = FALSE, request_method = FALSE, script_name = FALSE, server_name = FALSE, server_port = FALSE, content_length = FALSE, content_type = FALSE, http_referer = FALSE )
prefix
Prefix of the log messages.
http_accept, http_accept_encoding, http_accept_language, http_cache_control, http_connection, http_cookie, http_host, http_sec_fetch_dest, http_sec_fetch_mode, http_sec_fetch_site, http_sec_fetch_user, http_upgrade_insecure_requests, http_user_agent, path_info, query_string, remote_addr, remote_port, request_method, script_name, server_name, server_port, content_length, content_type, http_referer
Whether to log these headers.
Constructor
split()
Druid$split()
Split every item on its own log line
log()
Druid$log(req)
req
A request, see ambiorix::Request.
Log from request
clone()
The objects of this class are cloneable with this method.
Druid$clone(deep = FALSE)
deep
Whether to make a deep clone.
Druid logger for ambiorix applications.
druid(...)
druid(...)
... |
Arguments passed to Druid. |