Get the current log phase.

log_phase_get()

Value

Character string with the name of the current log phase.

Examples

  path <- tempfile()
  log_phase_get()
#> [1] "__DEFAULT__"
  log_print(path = path)
  log_phase_set("different")
  log_phase_get()
#> [1] "different"
  log_print(path = path)
  log_phase_reset()
  log_phase_get()
#> [1] "__DEFAULT__"
  log_read(path)
#>      version       phase  pid  name status  time core cpu resident  virtual
#> 1 0.1.2.9000 __DEFAULT__ 7616 local      0 0.000    0   0 147.9721 883.1631
#> 2 0.1.2.9000   different 7616 local      0 1.002    0   0 147.9721 883.1631