glimpse
Functions
pub fn debug(term term: a) -> a
Used for finding whats going on in your code. Generally these are best kept to developement enviornments and not production.
Equivlent to console.debug()
in JavaScript.
pub fn error(term term: a) -> a
Use this to log errors in your program which shold be addressed. If it is an error your program is designed to catch and recover from, you probably don’t need to log it.
On erlang this will always evaluate the message to a string, even if
the log isn’t printed. This is because on JavaScript anything can be
logged, so this makes more sense as a default as it lets us share one
interface accross all targets. If you are on Erlang and want it only
evaluated when logged, try [lazy_error
] instead.
Equivlent to console.error()
in JavaScript.
Equivlent to error
in Erlang.
pub fn info(term term: a) -> a
General information such as subprocess starts/stops, initalization information, and runtime logs.
Equivlent to console.log()
in JavaScript.
pub fn warn(term term: a) -> a
Runtime arnings which are of note.
Equivlent to console.warn()
in JavaScript.