Skip to content

Commit

Permalink
ASMO-6293: Rename some logging fields
Browse files Browse the repository at this point in the history
  • Loading branch information
datlam162 committed Nov 12, 2024
1 parent 881910a commit eb664d3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ecsFormat from "@elastic/ecs-winston-format";
import winston, { format } from "winston";
import { name, version } from "../package.json";

export function initLogger() {
const consoleLog = new winston.transports.Console({
Expand All @@ -12,8 +13,10 @@ export function initLogger() {
...info,
fields: {
Brand: process.env.Brand,
Environment: process.env.Environment,
Branch: process.env.Branch
EnvironmentName: process.env.Environment,
BranchName: process.env.Branch,
AssemblyName: name,
AssemblyVersion: version
}
};
})();
Expand Down

0 comments on commit eb664d3

Please sign in to comment.