Module log

Module log 

Source
Expand description

Logging utils. See “log” crate documentation for details

Example:

use log::{info, LevelFilter};
use tarantool_module::log::{TarantoolLogger, say, SayLevel};

log::set_logger(&TarantoolLogger {}).unwrap();
log::set_max_level(LevelFilter::Debug);
info!("Hello {}", username);

// Or you can write to Tarantool logger directly
say(SayLevel::Info, "log_demo.rs", 9, None, "Hello world");

See also:

Structs§

TarantoolLogger
Log trait implementation. Wraps say().

Enums§

SayLevel
Tarantool-native logging levels (use it with say())

Functions§

say
Format and print a message to Tarantool log file.