Skip to content

Commit

Permalink
Update logging.jl to add docstrings for exported symbols (#53299)
Browse files Browse the repository at this point in the history
This is a part of issue #52725.
  • Loading branch information
AllHailTheSheep authored Feb 13, 2024
1 parent 54e9728 commit 69f16a2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base/logging.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ isless(a::LogLevel, b::LogLevel) = isless(a.level, b.level)
-(level::LogLevel, inc::Integer) = LogLevel(level.level-inc)
convert(::Type{LogLevel}, level::Integer) = LogLevel(level)

"""
BelowMinLevel
Alias for [`LogLevel(-1_000_001)`](@ref LogLevel).
"""
const BelowMinLevel = LogLevel(-1000001)
"""
Debug
Expand All @@ -157,6 +162,11 @@ const Warn = LogLevel( 1000)
Alias for [`LogLevel(2000)`](@ref LogLevel).
"""
const Error = LogLevel( 2000)
"""
AboveMaxLevel
Alias for [`LogLevel(1_000_001)`](@ref LogLevel).
"""
const AboveMaxLevel = LogLevel( 1000001)

# Global log limiting mechanism for super fast but inflexible global log limiting.
Expand Down

0 comments on commit 69f16a2

Please sign in to comment.