Log
Wraith’s log, under the plugin’s name.
Get it with Api.log().
err(message: string): voidwarn(message: string): voidinfo(message: string): voiddebug(message: string): voidwrite(level: Wraith.Log.Level | Wraith.Log.LevelName, scope: string, message: string): voidenabled(level: Wraith.Log.Level | Wraith.Log.LevelName): booleanerr(message: string)warn(message: string)info(message: string)debug(message: string)write(level: Wraith.Log.Level|Wraith.Log.LevelName, scope: string, message: string)enabled(level: Wraith.Log.Level|Wraith.Log.LevelName): booleanvoid Err(string message)void Warn(string message)void Info(string message)void Debug(string message)void Write(Wraith.Log.Level level, string scope, string message)bool Enabled(Wraith.Log.Level level)void err(std::string_view message) constvoid warn(std::string_view message) constvoid info(std::string_view message) constvoid debug(std::string_view message) constvoid write(Wraith::Log_Level level, std::string_view scope, std::string_view message) constbool enabled(Wraith::Log_Level level) constpub fn err(&self, message: &str)pub fn warn(&self, message: &str)pub fn info(&self, message: &str)pub fn debug(&self, message: &str)pub fn write(&self, level: wraith::LogLevel, scope: &str, message: &str)pub fn enabled(&self, level: wraith::LogLevel) -> boolfn err(self: Wraith.Log, message: []const u8) voidfn warn(self: Wraith.Log, message: []const u8) voidfn info(self: Wraith.Log, message: []const u8) voidfn debug(self: Wraith.Log, message: []const u8) voidfn write(self: Wraith.Log, level: Wraith.Log.Level, scope: []const u8, message: []const u8) voidfn enabled(self: Wraith.Log, level: Wraith.Log.Level) boolvoid Wraith_Log_err(Wraith_Log self, sal_string message)void Wraith_Log_warn(Wraith_Log self, sal_string message)void Wraith_Log_info(Wraith_Log self, sal_string message)void Wraith_Log_debug(Wraith_Log self, sal_string message)void Wraith_Log_write(Wraith_Log self, Wraith_Log_Level level, sal_string scope, sal_string message)bool Wraith_Log_enabled(Wraith_Log self, Wraith_Log_Level level)Under the plugin’s name and scope, like kai_bones.camera
Uses Log.Level.
enabled
Section titled “enabled”Whether that level’s being logged, to skip building messages nobody sees.
Uses Log.Level.
Log.Level
Section titled “Log.Level”An enum of u8.
| Value | Name | |
|---|---|---|
| 0 | err |
|
| 1 | warn |
|
| 2 | info |
|
| 3 | debug |
|
| 4 | trace |
wraith.io · Mods on the Hub · Get Wraith
Made with ♥ by Asgard
