aboutsummaryrefslogtreecommitdiff
path: root/lib/std/log.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-09-15 19:40:04 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-09-16 14:46:53 -0400
commitd3d24874c91054a70c706fed47278c81c9ce890a (patch)
tree6ee731cf3c9acaac8292bd2701cafc6dee9e0d4d /lib/std/log.zig
parent7b32aacbafda2946c67ff4d4b329cdededf1da29 (diff)
downloadzig-d3d24874c91054a70c706fed47278c81c9ce890a.tar.gz
zig-d3d24874c91054a70c706fed47278c81c9ce890a.zip
std: remove deprecated API for the upcoming release
See #3811
Diffstat (limited to 'lib/std/log.zig')
-rw-r--r--lib/std/log.zig12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/std/log.zig b/lib/std/log.zig
index e0e002d600..9ebe85c004 100644
--- a/lib/std/log.zig
+++ b/lib/std/log.zig
@@ -169,10 +169,6 @@ pub fn defaultLog(
/// provided here.
pub fn scoped(comptime scope: @Type(.EnumLiteral)) type {
return struct {
- pub const emerg = @compileError("deprecated; use err instead of emerg");
- pub const alert = @compileError("deprecated; use err instead of alert");
- pub const crit = @compileError("deprecated; use err instead of crit");
-
/// Log an error message. This log level is intended to be used
/// when something has gone wrong. This might be recoverable or might
/// be followed by the program exiting.
@@ -194,8 +190,6 @@ pub fn scoped(comptime scope: @Type(.EnumLiteral)) type {
log(.warn, scope, format, args);
}
- pub const notice = @compileError("deprecated; use info instead of notice");
-
/// Log an info message. This log level is intended to be used for
/// general messages about the state of the program.
pub fn info(
@@ -219,10 +213,6 @@ pub fn scoped(comptime scope: @Type(.EnumLiteral)) type {
/// The default scoped logging namespace.
pub const default = scoped(.default);
-pub const emerg = @compileError("deprecated; use err instead of emerg");
-pub const alert = @compileError("deprecated; use err instead of alert");
-pub const crit = @compileError("deprecated; use err instead of crit");
-
/// Log an error message using the default scope. This log level is intended to
/// be used when something has gone wrong. This might be recoverable or might
/// be followed by the program exiting.
@@ -233,8 +223,6 @@ pub const err = default.err;
/// the circumstances would be worth investigating.
pub const warn = default.warn;
-pub const notice = @compileError("deprecated; use info instead of notice");
-
/// Log an info message using the default scope. This log level is intended to
/// be used for general messages about the state of the program.
pub const info = default.info;