Skip to content

Commit

Permalink
Append newlines to JSON log records (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooklynbagel authored Oct 10, 2024
1 parent 8f87c0f commit c0a6149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/layouts.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ json_log_layout <- function() {
}
fields$level <- as.character(level)
fields$time <- fmt_current_time(time_format, TRUE)
jsonlite::toJSON(fields, auto_unbox = TRUE)
sprintf("%s\n", jsonlite::toJSON(fields, auto_unbox = TRUE))
}
}

Expand Down

0 comments on commit c0a6149

Please sign in to comment.