#[non_exhaustive]pub enum ProcedureLogLevel {
Debug,
Info,
Warning,
Error,
}Expand description
The severity of a message a procedure body writes.
It is #[non_exhaustive]: a dialect matching on it states a fallback rather
than assuming the list it compiled against is the list that ships. An engine
with one logging statement and no levels — Oracle’s DBMS_OUTPUT is the
worked case — ignores this and spells the message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Debug
Detail wanted while diagnosing and not otherwise.
Info
The ordinary progress of a run, and the default.
Warning
Something worth a reader’s attention that did not stop the run.
Error
Something that went wrong. It is still a message and not a raise: a
procedure that must stop uses
SqlRenderer::render_procedure_raise.
Implementations§
Source§impl ProcedureLogLevel
impl ProcedureLogLevel
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
The level’s own word, lower case — "debug", "info", "warning",
"error".
An engine that takes a severity in its logging call reads it from here
and spells it the way that call wants:
SYSTEM$LOG('INFO', 'loaded') on Snowflake Scripting is
level.as_str().to_uppercase().