module Cosmo::Logger

Extended Modules

Defined in:

cosmo/logger.cr

Instance Method Summary

Instance Method Detail

def debug=(on : Bool) : Nil #

[View source]
def debug? : Bool #

[View source]
def pop_trace(idx : UInt32) : Nil #

[View source]
def push_trace(token : Token) : UInt32 #

Create a stack frame at token and push it to the trace


[View source]
def register_source(file_path : String, source : String) : Nil #

Register the source code at file_path


[View source]
def report_error(error_type : String, message : String, line : UInt32, pos : UInt32, file_path : String) : Exception #

[View source]
def report_error(error_type : String, message : String, token : Token) : Exception #

[View source]
def report_exception(ex : E) forall E #

[View source]
def trace_level=(level : UInt32) : Nil #

[View source]