Gbcamel.Logging
logging.ml - Custom logging and error messages
type log_type =
| Log_None
| Log_Debug
| Log_Info
| Log_Warning
| Log_Error
| Log_Critical
Represents the severity of a log statement
val int_of_log : log_type -> int
Follows the order in the type definition, [0:5]
type return_code = int * string
For exits, their appropriate return code and the message type
val rc_Ok : int * string
val rc_Error : int * string
val rc_MemError : int * string
val rc_FileError : int * string
val rc_ArgError : int * string
val rc_DecodeError : int * string
val rc_ImplementationError : int * string
val rc_PPUError : int * string
val ansi_bold : string
ANSI encoding for bold text
val ansi_red : string
ANSI encoding for red text
val ansi_orange : string
ANSI encoding for orange text
val ansi_yellow : string
ANSI encoding for yellow text
val ansi_reset : string
ANSI encoding for plain text
val error_red : string
ANSI encoding for bold red text
val error_orange : string
ANSI encoding for bold orange text
val error_yellow : string
ANSI encoding for bold yellow text
val string_of_log : log_type -> string
Gets the string representation of a log_type
log_type
val fatal : (int * string) -> string -> 'a
A fatal log statement that immediately exits the program
val _log : log_type -> string -> unit
Prints log statements to stdout/stderr