log_active {autometric}R Documentation

Check the log thread.

Description

Check if the log is running.

Usage

log_active()

Value

TRUE if a background thread is actively writing to the log, FALSE otherwise. The result is based on a static C variable, so the information is second-hand.

Examples

  path <- tempfile()
  log_active()
  log_start(seconds = 0.5, path = path)
  log_active()
  Sys.sleep(2)
  log_stop()
  Sys.sleep(2)
  log_active()
  unlink(path)

[Package autometric version 0.1.2 Index]