Skip to content

Commit

Permalink
added default log settings to info and debug for system and user log …
Browse files Browse the repository at this point in the history
…respectively
  • Loading branch information
shapirov103 committed Oct 22, 2024
1 parent eea9047 commit e940547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions examples/blueprint-construct/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ export default class BlueprintConstruct {

blueprints.HelmAddOn.validateHelmVersions = true;
blueprints.HelmAddOn.failOnVersionValidation = false;
logger.settings.minLevel = 3; // info
userLog.settings.minLevel = 2; // debug

this.teams = [
new team.TeamTroi,
Expand Down
5 changes: 3 additions & 2 deletions lib/utils/log-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export const userLog = new Logger({
stylePrettyLogs: true,
name: "user",
hideLogPositionForProduction: true,
prettyLogTemplate: "{{logLevelName}} "
prettyLogTemplate: "{{logLevelName}} ",
minLevel: 2 // info
});

/**
Expand All @@ -17,5 +18,5 @@ export const logger = new Logger({
stylePrettyLogs: true,
type: "pretty",
name: "main",
minLevel: 4 // info
minLevel: 3 // info
});

0 comments on commit e940547

Please sign in to comment.