Skip to content

Commit

Permalink
Merge pull request #8998 from ibuclaw/merge_stable
Browse files Browse the repository at this point in the history
merge stable
  • Loading branch information
ibuclaw committed May 3, 2024
2 parents 9a8325c + ee136a9 commit 303b9c9
Show file tree
Hide file tree
Showing 2 changed files with 229 additions and 31 deletions.
6 changes: 3 additions & 3 deletions std/logger/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -1473,15 +1473,15 @@ if (sharedLog !is myLogger)
atomicStore!(MemoryOrder.seq)(stdSharedLogger, atomicLoad(logger));
}

/** This methods get and set the global `LogLevel`.
/** These methods get and set the global `LogLevel`.
Every log message with a `LogLevel` lower as the global `LogLevel`
Every log message with a `LogLevel` lower than the global `LogLevel`
will be discarded before it reaches `writeLogMessage` method of any
`Logger`.
*/
/* Implementation note:
For any public logging call, the global log level shall only be queried once on
entry. Otherwise when another threads changes the level, we would work with
entry. Otherwise when another thread changes the level, we would work with
different levels at different spots in the code.
*/
@property LogLevel globalLogLevel() @safe @nogc
Expand Down

0 comments on commit 303b9c9

Please sign in to comment.