Skip to content

Commit

Permalink
logging vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
wlandau committed Oct 21, 2024
1 parent 17044f4 commit d63b532
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vignettes/logging.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,15 @@ library(crew)
library(targets)
library(tarchetypes)

controller <- crew_controller_local(
workers = 2,
options_metrics = crew_options_metrics(
path = "worker_log_directory/",
seconds_interval = 1
)
)

if (tar_active()) {
controller <- crew_controller_local(workers = 2)
controller$start()
log_start(
path = "log.txt",
Expand Down

0 comments on commit d63b532

Please sign in to comment.