Document logging and remove old functions
This adds a large doc-block to the top of the std::logging module explaining how
to use it. This is mostly just making sure that all the information in the
manual's section about logging is also here (in case someone decides to look
into this module first).
This also removes the old console_{on,off} methods. As far as I can tell, the
functions were only used by the compiler, and there's no reason for them to be
used because they're all turned off by default anyway (maybe they were turned on
by default at some point...)
I believe that this is the final nail in the coffin and closes #5021
This commit is contained in:
parent
a1ffb06ac8
commit
88593fc3fc
5 changed files with 91 additions and 74 deletions
|
|
@ -326,27 +326,6 @@ rust_mktime(rust_tm* timeptr) {
|
|||
return mktime(&t);
|
||||
}
|
||||
|
||||
static lock_and_signal log_lock;
|
||||
static bool log_to_console = true;
|
||||
|
||||
extern "C" CDECL void
|
||||
rust_log_console_on() {
|
||||
scoped_lock with(log_lock);
|
||||
log_to_console = true;
|
||||
}
|
||||
|
||||
extern "C" CDECL void
|
||||
rust_log_console_off() {
|
||||
scoped_lock with(log_lock);
|
||||
log_to_console = false;
|
||||
}
|
||||
|
||||
extern "C" CDECL uintptr_t
|
||||
rust_should_log_console() {
|
||||
scoped_lock with(log_lock);
|
||||
return log_to_console;
|
||||
}
|
||||
|
||||
extern "C" lock_and_signal*
|
||||
rust_create_little_lock() {
|
||||
return new lock_and_signal();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue