Set the current log phase.

log_phase_set(phase)

Arguments

phase

Character string with the phase of the log. Only the first 255 characters are used. Cannot include the pipe character "|" because it is the delimiter of fields in the log output.

Value

NULL (invisibly). Called for its side effects.

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