Skip to content

Commit

Permalink
Fix LogLevel comparisons in Logger (#1078)
Browse files Browse the repository at this point in the history
  • Loading branch information
vittorioromeo authored Oct 27, 2024
1 parent f2a23e7 commit c4a0b69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Logger.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export enum LogLevel {
/** 0 - Logs that are used for interactive investigation during development. These logs should primarily contain information useful for debugging and have no long-term value. */
Debug = "debug",
Debug = 0,
/** 1 - Logs that track the general flow of the application. These logs should have long-term value. */
Info = "info",
Info = 1,
/** 2 - Logs that highlight an abnormal or unexpected event in the application flow, but do not otherwise cause the application execution to stop. */
Warning = "warning",
Warning = 2,
/** 3 - Logs that highlight when the current flow of execution is stopped due to a failure. These should indicate a failure in the current activity, not an application-wide failure. */
Error = "error",
Error = 3,
/** 4 - Not used for writing log messages. Specifies that a logging category should not write any messages. */
None = "none",
None = 4,
}

export default class Logger {
Expand Down

0 comments on commit c4a0b69

Please sign in to comment.