Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Structured" logging with meta-data #351

Open
MisterDA opened this issue Jun 3, 2022 · 0 comments
Open

"Structured" logging with meta-data #351

MisterDA opened this issue Jun 3, 2022 · 0 comments

Comments

@MisterDA
Copy link
Contributor

MisterDA commented Jun 3, 2022

Current.Job provides two functions to log output:

val write : t -> string -> unit
(** [write t data] appends [data] to the log. *)

val log : t -> ( 'a, Stdlib.Format.formatter, unit, unit ) format4 -> 'a
(** [log t fmt] appends a formatted message to the log, with a newline added at the end. *)

the logs are then streamed as text to the web interface.

I think it would be nicer if the logs were streamed with metadata, e.g. the build step where they were produced, to let the end interface better chose how to display them instead for streaming pre-formatted logs.
In the web interface, this would allow to have drop downs to display/hide the logs of each build step, highlight the label, allow selecting and copying (useful for Dockerfiles ocurrent/ocaml-ci#585).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant