module Cosmo::Logger
Extended Modules
Defined in:
cosmo/logger.crInstance Method Summary
- #debug=(on : Bool) : Nil
- #debug? : Bool
- #pop_trace(idx : UInt32) : Nil
-
#push_trace(token : Token) : UInt32
Create a stack frame at
token
and push it to the trace -
#register_source(file_path : String, source : String) : Nil
Register the source code at
file_path
- #report_error(error_type : String, message : String, line : UInt32, pos : UInt32, file_path : String) : Exception
- #report_error(error_type : String, message : String, token : Token) : Exception
- #report_exception(ex : E) forall E
- #trace_level=(level : UInt32) : Nil
Instance Method Detail
Create a stack frame at token
and push it to the trace
def register_source(file_path : String, source : String) : Nil
#
Register the source code at file_path
def report_error(error_type : String, message : String, line : UInt32, pos : UInt32, file_path : String) : Exception
#