We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e11636f commit 0b7ea5dCopy full SHA for 0b7ea5d
2 files changed
src/interface/interface.jl
@@ -44,14 +44,14 @@ All keyword arguments are passed to the [`initialize_state!`](@ref)`(problem, al
44
"""
45
function solve!(problem::Problem, algorithm::Algorithm, state::State; kwargs...)
46
initialize_state!(problem, algorithm, state; kwargs...)
47
- log!(problem, algorithm, state; context = :Start)
+ log!(problem, algorithm, state, :Start)
48
while !is_finished!(problem, algorithm, state)
49
- log!(problem, algorithm, state; context = :PreStep)
+ log!(problem, algorithm, state, :PreStep)
50
increment!(state)
51
step!(problem, algorithm, state)
52
- log!(problem, algorithm, state; context = :PostStep)
+ log!(problem, algorithm, state, :PostStep)
53
end
54
- log!(problem, algorithm, state; context = :Stop)
+ log!(problem, algorithm, state, :Stop)
55
return state
56
57
src/logging.jl
@@ -93,9 +93,9 @@ Specific algorithms can associate other events with other contexts.
93
See also the scoped value [`AlgorithmsInterface.algorithm_logger`](@ref).
94
95
struct AlgorithmLogger
96
- actions::Dict{Symbol, LogAction}
+ actions::Dict{Symbol, LoggingAction}
97
98
-AlgorithmLogger(args...) = AlgorithmLogger(Dict{Symbol, LogAction}(args...))
+AlgorithmLogger(args...) = AlgorithmLogger(Dict{Symbol, LoggingAction}(args...))
99
100
101
const LOGGING_ENABLED = Ref(true)
0 commit comments