From 880be6a94013ba0b7791b0ca1b6e16104f2f0a1c Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 19 Apr 2011 12:21:57 +0200 Subject: Overhaul logging system in runtime See https://github.com/graydon/rust/wiki/Logging-vision The runtime logging categories are now treated in the same way as modules in compiled code. Each domain now has a log_lvl that can be used to restrict the logging from that domain (will be used to allow logging to be restricted to a single domain). Features dropped (can be brought back to life if there is interest): - Logger indentation - Multiple categories per log statement - I possibly broke some of the color code -- it confuses me --- src/boot/me/trans.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/boot') diff --git a/src/boot/me/trans.ml b/src/boot/me/trans.ml index 3ad3ee06..1b3ad5d4 100644 --- a/src/boot/me/trans.ml +++ b/src/boot/me/trans.ml @@ -2664,12 +2664,12 @@ let trans_visitor nabi_rust (upcall_fixup name) args); and trans_log_int lev (a:Ast.atom) : unit = - trans_void_upcall "upcall_log_int" [| simm (Int64.of_int lev); - trans_atom a |] + trans_void_upcall "upcall_log_int_rustboot" [| simm (Int64.of_int lev); + trans_atom a |] and trans_log_str lev (a:Ast.atom) : unit = - trans_void_upcall "upcall_log_str" [| simm (Int64.of_int lev); - trans_atom a |] + trans_void_upcall "upcall_log_str_rustboot" [| simm (Int64.of_int lev); + trans_atom a |] and trans_spawn ((*initializing*)_:bool) -- cgit v1.2.3