diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/logging.rs | 9 | ||||
| -rw-r--r-- | src/libstd/std.rs | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/libstd/logging.rs b/src/libstd/logging.rs index a885a4f7227..1b91276f904 100644 --- a/src/libstd/logging.rs +++ b/src/libstd/logging.rs @@ -37,7 +37,7 @@ pub fn console_off() { rt::logging::console_off(); } -#[cfg(not(test))] +#[cfg(not(test), stage0)] #[lang="log_type"] #[allow(missing_doc)] pub fn log_type<T>(_level: u32, object: &T) { @@ -67,3 +67,10 @@ fn newsched_log_str(msg: ~str) { } } } + +// XXX: This will change soon to not require an allocation. This is an unstable +// api which should not be used outside of the macros in ext/expand. +#[doc(hidden)] +pub fn log(_level: u32, msg: ~str) { + newsched_log_str(msg); +} diff --git a/src/libstd/std.rs b/src/libstd/std.rs index ce0202ded7e..e0e804f4c04 100644 --- a/src/libstd/std.rs +++ b/src/libstd/std.rs @@ -218,6 +218,7 @@ mod std { pub use option; pub use kinds; pub use local_data; + pub use logging; pub use sys; pub use unstable; pub use str; |
