log_status: Get the status of the log

View source: R/supplements.R

log_statusR Documentation

Get the status of the log

Description

The log_status function gets the status of the log. Possible status values are 'on', 'off', 'open', or 'closed'. The function takes no parameters.

Usage

log_status()

Value

The status of the log as a character string.

Examples

# Check status before the log is opened
log_status()
# [1] "closed"

# Create temp file location
tmp <- file.path(tempdir(), "test.log")

# Open log
lf <- log_open(tmp)

# Check status after log is opened
log_status()
# [1] "open"

# Close log
log_close()

logr documentation built on Nov. 10, 2023, 1:07 a.m.