summary refs log tree commit diff
path: root/src/libstd/rt/logging.rs
AgeCommit message (Collapse)AuthorLines
2013-09-23Register new snapshotsAlex Crichton-17/+1
2013-09-18librustc/libstd: No longer pass crate_map to start.Luqman Aden-0/+18
2013-09-16Add an SendStr typeMarvin Löbel-10/+5
A SendStr is a string that can hold either a ~str or a &'static str. This can be useful as an optimization when an allocation is sometimes needed but the common case is statically known. Possible use cases include Maps with both static and owned keys, or propagating error messages across task boundaries. SendStr implements most basic traits in a way that hides the fact that it is an enum; in particular things like order and equality are only determined by the content of the wrapped strings. Replaced std::rt:logging::SendableString with SendStr Added tests for using an SendStr as key in Hash- and Treemaps
2013-09-15Remove {uint,int,u64,i64,...}::from_str,from_str_radixblake2-ppc-1/+2
Remove these in favor of the two traits themselves and the wrapper function std::from_str::from_str. Add the function std::num::from_str_radix in the corresponding role for the FromStrRadix trait.
2013-09-14std::logging: Use a more specific enum than Eitherblake2-ppc-11/+13
2013-09-13Convert rust_crate_map.cpp to RustFlorian Hahn-54/+10
Conflicts: src/libstd/rt/logging.rs
2013-09-07Handle global log levels (fixes #6033)novalis-36/+100
2013-09-06Fix #6031. Allow symbolic log levels, not just numbers.novalis-18/+53
2013-09-04Convert rust_log.cpp to Rust, closes #8703Florian Hahn-15/+248
2013-08-19Rangechange the log message truncation limit.Michael Sullivan-1/+1
2013-08-19Add externfn macro and correctly label fixed_stack_segmentsNiko Matsakis-0/+6
2013-08-15Add ToCStr method .with_c_str()Kevin Ballard-1/+1
.with_c_str() is a replacement for the old .as_c_str(), to avoid unnecessary boilerplate. Replace all usages of .to_c_str().with_ref() with .with_c_str().
2013-08-06Merge commit 'd89ff7eef969aee6b493bc846b64d68358fafbcd' into ↵Erick Tryzelaar-4/+17
remove-str-trailing-nulls
2013-08-04std: Fix newsched logging truncationBrian Anderson-4/+17
The truncation needs to be done in the console logger in order to catch all the logging output, and because truncation only matters when outputting to the console.
2013-08-04std: replace str::as_c_str with std::c_strErick Tryzelaar-2/+2
2013-07-23std: move StrUtil::as_c_str into StrSliceErick Tryzelaar-5/+3
2013-06-21std: Make console log off/on controls work with newschedBrian Anderson-4/+16
2013-05-22libstd: Fix merge fallout.Patrick Walton-0/+68