layout_teal_glue_generator: Generate log layout function using common variables available...

View source: R/register_logger.R

layout_teal_glue_generatorR Documentation

Generate log layout function using common variables available via glue syntax including shiny session token

Description

Generate log layout function using common variables available via glue syntax including shiny session token

Usage

layout_teal_glue_generator(layout)

Arguments

layout

(character(1))
the log layout. Alongside the standard logging variables provided by the logging package (e.g. pid) the token variable can be used which will write the last 8 characters of the shiny session token to the log.

Details

this function behaves in the same way as logger::layout_glue_generator() but allows the shiny session token (last 8 chars) to be included in the logging layout

Value

function taking level and msg arguments - keeping the original call creating the generator in the generator attribute that is returned when calling log_layout for the currently used layout


teal.logger documentation built on Oct. 30, 2024, 9:17 a.m.