diff options
| author | Sean McArthur <sean.monstar@gmail.com> | 2014-05-02 19:32:47 -0700 |
|---|---|---|
| committer | Sean McArthur <sean.monstar@gmail.com> | 2014-05-05 11:18:53 -0700 |
| commit | ceb29314a7e6fc2d9f3527e36534b2d1608394d8 (patch) | |
| tree | 9889b1d7c7f928cc51b511f866c4e4e7caf9cda9 /src/rustllvm/RustWrapper.cpp | |
| parent | b5d6b07370b665df6b54fa20e971e61041a233b0 (diff) | |
| download | rust-ceb29314a7e6fc2d9f3527e36534b2d1608394d8.tar.gz rust-ceb29314a7e6fc2d9f3527e36534b2d1608394d8.zip | |
log: Logger receiveis a LogRecord
The logging macros now create a LogRecord, and pass that to the
Logger, instead of passing a `level` and `args`. The new signature is:
trait Logger {
fn log(&mut self, record: &LogRecord);
}
The LogRecord includes additional values that may be useful to custom
loggers, and also allows for further expansion if not values are found
useful.
DefaultLogger's formatting was taken from Python's default formatting:
`LEVEL:from: message`
Also included: fmt::Arguments now implement Show, so they can be used to
extend format strings.
[breaking-change]
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
