Print debugging statement: Difference between revisions
Content added Content deleted
Line 121: | Line 121: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Julia has |
Julia has native print logging type functions, including a core Logging module. In addition, there are several additional downloadable modules, such as Memento, with extended logging functionality. Julia's builtin logging has defined macros for logging levels: @error, @warn, @info, and @debug. By default, debug level statements in code are not printed unless the logging level is set to allow debug statements to print, which can be enabled by setting the JULIA_DEBUG environment variable. |
||
<lang julia>function test() |
<lang julia>function test() |
||
@info "starting test()" |
@info "starting test()" |