<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.quasar-rce.com/index.php?action=history&amp;feed=atom&amp;title=Vendetta%2FAPI%2Flog_error</id>
	<title>Vendetta/API/log error - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.quasar-rce.com/index.php?action=history&amp;feed=atom&amp;title=Vendetta%2FAPI%2Flog_error"/>
	<link rel="alternate" type="text/html" href="https://wiki.quasar-rce.com/index.php?title=Vendetta/API/log_error&amp;action=history"/>
	<updated>2026-04-07T09:29:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.quasar-rce.com/index.php?title=Vendetta/API/log_error&amp;diff=44&amp;oldid=prev</id>
		<title>Wikiadmin: created log_error</title>
		<link rel="alternate" type="text/html" href="https://wiki.quasar-rce.com/index.php?title=Vendetta/API/log_error&amp;diff=44&amp;oldid=prev"/>
		<updated>2025-03-03T15:17:56Z</updated>

		<summary type="html">&lt;p&gt;created log_error&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Definition ===&lt;br /&gt;
lib.log_error (message, [alert_level], [mod_id, mod_version]) :: nil&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Stores the message in Neoloader&amp;#039;s message logging table. The message will be formatted if configured to do so by the LME. The message can also be stored in a particular mod&amp;#039;s error table if the id and version are provided.&lt;br /&gt;
&lt;br /&gt;
=== Arguments ===&lt;br /&gt;
# string message: The string to store&lt;br /&gt;
# number alert_level: The type of error&lt;br /&gt;
# string mod_id: The internal id of the mod to store this log in&lt;br /&gt;
# string mod_ver: The version of the mod to store this log in&lt;br /&gt;
&lt;br /&gt;
Alert levels:&lt;br /&gt;
{|border=&amp;quot;1&amp;quot;&lt;br /&gt;
| 1  || Debugging &lt;br /&gt;
|-&lt;br /&gt;
| 2  || Info &lt;br /&gt;
|-&lt;br /&gt;
| 3  || Warning &lt;br /&gt;
|-&lt;br /&gt;
| 4  || Error &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
# nil&lt;br /&gt;
&lt;br /&gt;
=== Other notes ===&lt;br /&gt;
* Added in LME 2.x (Neoloader preview)&lt;br /&gt;
* If the user has &amp;quot;Echo Logging&amp;quot; enabled, the message will also be printed to the console. This is the default behavior of Neoloader.&lt;br /&gt;
* The &amp;quot;Formatting&amp;quot; of a message is to make logged errors more in line with how industry standard logs appear. This can be disabled through the config option &amp;quot;dbgFormatting=NO&amp;quot;&lt;br /&gt;
* If the LME&amp;#039;s log ignore level is above the provided alert level, the log is discarded. The default is to keep alert 2 and above.&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
	</entry>
</feed>