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__ 5832 local      0 0.000    0   0 145.5104 863.0886
#> 2 0.1.2.9000   different 5832 local      0 1.002    0   0 145.5104 863.0886