set_logger: set a log4r logger used within the package

Description Usage Arguments Details

View source: R/global.R

Description

set a log4r logger used within the package

Usage

1
set_logger(logger, token = NULL)

Arguments

logger

A logger object see create.logger. NULL to disable logging.

token

Set a unique identifier for this logger.

Details

This function will save each logger in the wilson.globals environment. Each logger is stored by the name 'logger'[token] (e.g. 'logger6b821824b0b53b1a3e8f531a34d0d6e6').

Use onSessionEnded to clean up after logging. See onFlush.


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.