Skip to content

Commit

Permalink
Merge pull request #70 from JuliaLogging/ox/release
Browse files Browse the repository at this point in the history
Release 1.0.0
  • Loading branch information
oxinabox authored Nov 13, 2022
2 parents 1172d4f + ce8c41b commit 1bf42b8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 27 deletions.
3 changes: 2 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
The LoggingExtras.jl package is licensed under the MIT "Expat" License:

> Copyright (c) 2018: Lyndon White <oxinabox@ucc.asn.au>
> Copyright (c) 2022: Frames White <oxinabox@ucc.asn.au> and Collaborators
> https://github.com/JuliaLogging/LoggingExtras.jl/graphs/contributors
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LoggingExtras"
uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
authors = ["Lyndon White <oxinabox@ucc.asn.au>"]
version = "0.4.9"
authors = ["Frames White <oxinabox@ucc.asn.au>", "Collaborators <https://github.com/JuliaLogging/LoggingExtras.jl/graphs/contributors>"]
version = "1.0.0"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
6 changes: 1 addition & 5 deletions src/deprecated.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@

Base.@deprecate(
DemuxLogger(loggers::Vararg{AbstractLogger}; include_current_global=true),
include_current_global ? TeeLogger(global_logger(), loggers...) : TeeLogger(loggers...)
)
# There are currently no deprecations.
20 changes: 1 addition & 19 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -293,23 +293,5 @@ end
end

@testset "Deprecations" begin
testlogger = TestLogger(min_level=BelowMinLevel)

@test_logs (:warn, r"deprecated") match_mode=:any begin
demux_logger = DemuxLogger(testlogger)
@test demux_logger isa TeeLogger
@test Set(demux_logger.loggers) == Set([testlogger, global_logger()])
end

@test_logs (:warn, r"deprecated") match_mode=:any begin
demux_logger = DemuxLogger(testlogger; include_current_global=true)
@test demux_logger isa TeeLogger
@test Set(demux_logger.loggers) == Set([testlogger, global_logger()])
end

@test_logs (:warn, r"deprecated") match_mode=:any begin
demux_logger = DemuxLogger(testlogger; include_current_global=false)
@test demux_logger isa TeeLogger
@test Set(demux_logger.loggers) == Set([testlogger])
end
# Nothing is currently deprecated
end

2 comments on commit 1bf42b8

@oxinabox
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/72122

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.0 -m "<description of version>" 1bf42b8939b9d9014bb315ee9bd40786f0a39c79
git push origin v1.0.0

Please sign in to comment.