log_msg: message logging

log_msgR Documentation

message logging

Description

Logs message based on conditions supplied as options to *Socket object.

Usage

log_msg(msg, opts, private)

Arguments

msg

(msg/tbl) The msg tibble object returned from msg() which consists of the following:

  • ts (POSIXct) timestamp

  • socket (character) the socket over which the message arrived

  • channel (character) the channel over which the message arrived

  • ... (varies) all fields encoded in the event data JSON

opts

(list) The list of options from the *Socket object. Used to determine whether the object should be sent to console.

private

(environment) The ⁠*Socket⁠ private environment


jagg19/AlpacaforR documentation built on July 3, 2023, 12:14 p.m.