# Enable logging after disabling logging

**URL:** <https://discourse.julialang.org/t/enable-logging-after-disabling-logging/48073>\
**Category:** General Usage\
**Created:** [October 9, 2020, 10:55pm UTC](https://discourse.julialang.org/t/enable-logging-after-disabling-logging/48073 "2020-10-09T22:55:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranjan/32/4832_2.png) [@ranjan](https://discourse.julialang.org/u/ranjan)\
**Post date:** [October 9, 2020, 10:55pm UTC](https://discourse.julialang.org/t/enable-logging-after-disabling-logging/48073/1 "2020-10-09T22:55:43Z")

</div>

I’m trying to enable global logging after disabling it. Is this the right/recommended way to do it?

```julia
julia> module A
           using Logging
           f() = @info("hi")
       end
Main.A

julia> A.f()
[ Info: hi

julia> Logg^C

julia> using Logging

julia> Logging.disable_logging(Logging.Info)
LogLevel(1)

julia> A.f()

julia> Base.CoreLogging._min_enabled_level
Base.RefValue{Base.CoreLogging.LogLevel}(LogLevel(1))

julia> Base.CoreLogging._min_enabled_level[] = LogLevel(0)
Info

julia> A.f()
[ Info: hi

```
