282 Commits

Author SHA1 Message Date
Corey Farwell
0661c2c59c Utilize for loop sugar 2015-03-22 22:07:39 -04:00
Alex Crichton
c3396059e8 Merge pull request #31 from rust-lang/no-more-rt
Remove dependence on std::rt
2015-03-18 13:21:35 -07:00
Alex Crichton
2d5943969a Remove dependence on std::rt
This moves the usage of `rt::at_exit` to `libc::atexit` instead. It's not
looking like it's likely for `rt::at_exit` to be stable at 1.0, and
`libc::atexit` is at least supported on major platforms.
2015-03-18 11:49:11 -07:00
Steven Fackler
f86c7b2b5b Fix typo in docs 2015-03-17 23:52:36 -07:00
Jason Ozias
fe073054a0 respect padding for LogLevel names 2015-03-10 13:04:55 -04:00
Steven Fackler
207e329267 Encapsulate data passed to Log::enabled
We may want to add things to the information provided to `log` and
`enabled`. slf4j provides the ability to pass `Marker` objects when
logging which can be used for more advanced filtering for example.
2015-03-07 22:34:39 -08:00
Steven Fackler
c2d52c0c8a Add the concept of an explicit "target"
It defaults to module_path!() as before, but it's useful to be able to
override the default in certain context, for example, when logging web
server request events to a specific target different than the normal
module path.
2015-03-07 22:10:36 -08:00
Steven Fackler
09d16520d7 Make entry point functions "private" 2015-03-07 21:53:54 -08:00
Steven Fackler
677d9c0dc8 Remove LogRecord::new
I initially added this to make testing loggers easier, but I think it's
a bad idea to keep in the future since we're essentially prohibited from
adding fields. We can potentially add a function or macro go liblog to
"log" to a specified logger instead of the global one in the future.
2015-03-07 21:53:54 -08:00
Steven Fackler
2ee7110a8f "Encapsulate" LogLocation
We can't make it fully private but we can mangle the field names and
hide them from the docs. It's important to keep the internals of
`LogLocation` hidden so that we have the option of e.g. adding the
function name if such a syntax extension's added to rustc or switching
the implementation to look at debug info.
2015-03-07 21:53:54 -08:00
Alex Crichton
e78b7368dc Don't rely on the unstable ok_or method 2015-03-04 13:51:39 -08:00
Simon Wollwage
e5b566ffb5 Changed LogLocation to use u32 instead of usize, according to latest changes in rust nightly,
as line!() now returns a u32.
2015-02-23 12:15:49 +00:00
Huon Wilson
6f971f26dc Update for default object lifetime bounds. 2015-02-19 19:07:46 +11:00
Scott G. Ainsworth
fd781c0850 Implemented Error trait for SetLoggerError. 2015-02-17 20:16:55 -05:00
Corey Farwell
0dc3db28d5 Fix spelling error in comment 2015-02-13 19:18:37 -05:00
Matthew Maurer
d57b256041 Update for new rustc
* Switch FromStr to Result
* Remove "collections" feature from test switch
2015-02-03 10:02:44 -05:00
Alex Crichton
3ba35a979c Add some feature attributes 2015-01-29 08:39:48 -08:00
Steven Fackler
fcbff2ad38 Add a LogRecord constructor. 2015-01-28 00:13:12 -08:00
Alex Crichton
a96ca990cb Travis and documentation tweaks 2015-01-27 07:30:34 -08:00
Steven Fackler
3cb3bff11b Add some documentation + copyright notices 2015-01-26 23:51:42 -08:00
Steven Fackler
28ce2f8b96 Update for @alexcrichton's comments 2015-01-26 23:08:37 -08:00
Steven Fackler
42a353eaf4 Rewrite liblog into a logging facade
See issue #3 for background.

Closes #3
Closes #7
Closes #11
2015-01-24 22:55:04 -08:00
Сухарик
208409230a update to recent rust changes 2015-01-22 22:28:42 +03:00
Huon Wilson
8f2f8311b8 Bump to 0.1.9. 2015-01-09 21:45:18 +11:00
Tom Jakubowski
47df3cf036 Update for rust master (9f1ead8fa) 2015-01-08 14:23:13 -08:00
Alex Crichton
34181b82ae Bump to 0.1.8 2015-01-07 08:09:33 -08:00
Alex Crichton
4c9a0f4ea4 Update to rust master 2015-01-03 13:56:46 -08:00
Robert Straw
69e9e2e480 Remove closure from format_args! call. 2014-12-29 08:33:33 -06:00
Alex Crichton
e3d7349201 Update to rust master 2014-12-23 08:07:59 -08:00
Alex Crichton
605cf5a1cd Update to rust master 2014-12-19 08:20:28 -08:00
Steven Fackler
27f239da8c Update for proc removal 2014-12-15 12:34:08 -08:00
Alex Crichton
b18443e6eb Initial commit 2014-12-13 13:46:26 -08:00