Switch core macros to expand to log(level, ...).

This commit is contained in:
Graydon Hoare 2011-12-22 16:36:55 -08:00
parent 389329ef1e
commit ccb5b6fb25

View File

@ -55,10 +55,10 @@ fn expand_expr(exts: hashmap<str, syntax_extension>, cx: ext_ctxt, e: expr_,
fn core_macros() -> str {
ret
"{
#macro[[#error[f, ...], log_full(core::error, #fmt[f, ...])]];
#macro[[#warn[f, ...], log_full(core::warn, #fmt[f, ...])]];
#macro[[#info[f, ...], log_full(core::info, #fmt[f, ...])]];
#macro[[#debug[f, ...], log_full(core::debug, #fmt[f, ...])]];
#macro[[#error[f, ...], log(core::error, #fmt[f, ...])]];
#macro[[#warn[f, ...], log(core::warn, #fmt[f, ...])]];
#macro[[#info[f, ...], log(core::info, #fmt[f, ...])]];
#macro[[#debug[f, ...], log(core::debug, #fmt[f, ...])]];
}";
}