Skip to content

Commit

Permalink
environment as a root field in json logging (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosister authored Mar 11, 2022
1 parent 5ae4c79 commit fcaa58a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/json/formatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ impl EventFormatter for DefaultEventFormatter {
"level",
metadata.level().to_string().to_lowercase().as_str(),
)?;
map_serializer.serialize_entry("environment", info.environment())?;
map_serializer.serialize_entry("type", info.app_name())?;

let mut visitor = PrimaJsonVisitor::default();
Expand Down

0 comments on commit fcaa58a

Please sign in to comment.