Logs
Este módulo é responsável pela geração de logs durante o tempo de execução da aplicação. Os logs são registrados em um arquivo, utilizando o formato chave-valor.
Atalhos
Métodos
Log
-- @param identifier The identifier of the log
-- @param value The value to be logged.
log(identifier, value)function process_data(a)
-- Perform some operations (this can be customized)
-- For the sake of this example, we will simply pass the variable through unchanged.
log("PROCESSING", a)
return a
end
-- Assuming the variable "a" has the value of 42:
local a = 42
-- When the function is called, the log entry generated would look like this:
-- [2025-02-13 18:03:37.137227800 -03:00 "PROCESSING"]: 42