gear icon indicating copy to clipboard operation
gear copied to clipboard

Even better logging fmt for the `gear-node-loader`

Open techraed opened this issue 2 years ago • 2 comments

  1. Need some balance in logging information. Logging at what field the log was done or the stack of functions with full path is noisy. Need to make from this
    at utils/node-loader/src/batch_pool.rs:167
    in gear_node_loader::batch_pool::run_batch_impl
    in gear_node_loader::batch_pool::run_batch with seed: 9927380856200300910, batch_type: "upload_program"
    in gear_node_loader::batch_pool::run

something like this:

    [gear_node_loader::batch_pool::run_batch] seed: 9927380856200300910, batch_type: "upload_program"
  1. Implement logging to different destinations a different level information. For example, we can log to file data with TRACE max level, but to stdout up to DEBUG.

techraed avatar Oct 12 '22 08:10 techraed

sth like https://crates.io/crates/slog could help, but it is outdated tbh

clearloop avatar May 23 '23 21:05 clearloop

It's mostly about how formatter is implemented for the tracing

techraed avatar Jun 20 '23 06:06 techraed