Packages

A gleam dev proxy to enable live reload and smoother DX

Current section

Files

Jump to
olive src olive@logging.erl
Raw

src/olive@logging.erl

-module(olive@logging).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([log_debug/1, log_error/1]).
-file("src/olive/logging.gleam", 3).
-spec log_debug(binary()) -> nil.
log_debug(Msg) ->
gleam_stdlib:println(
<<"\x{001b}[38;5;2mOLIVE\x{001b}[0m "/utf8, Msg/binary>>
).
-file("src/olive/logging.gleam", 7).
-spec log_error(binary()) -> nil.
log_error(Msg) ->
gleam_stdlib:println(
<<"\x{001b}[38;5;1mOLIVE\x{001b}[0m "/utf8, Msg/binary>>
).