<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ATextLogCreate</id>
	<title>API:TextLogCreate - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ATextLogCreate"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TextLogCreate&amp;action=history"/>
	<updated>2026-10-18T19:24:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:TextLogCreate&amp;diff=30779&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:TextLogCreate&amp;diff=30779&amp;oldid=prev"/>
		<updated>2026-10-16T19:49:59Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=TextLog}}&lt;br /&gt;
Creates a new, empty text log.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TextLogCreate(logName, entryLimit)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;logName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the new text log.&lt;br /&gt;
;entryLimit : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Maximum number of entries the log keeps.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* If a text log with this name already exists, nothing happens. Its entry limit is not changed; use [[API:TextLogSetEntryLimit|TextLogSetEntryLimit]] for that.&lt;br /&gt;
* &amp;lt;code&amp;gt;entryLimit&amp;lt;/code&amp;gt; is cut to a whole number and clamped to the range 0–8192.&lt;br /&gt;
* When the log is full, adding an entry first removes the oldest ones. With a limit of 0 the log never stores any entry.&lt;br /&gt;
* A new log starts enabled (see [[API:TextLogSetEnabled|TextLogSetEnabled]]) and with incremental saving off.&lt;br /&gt;
* Logs created with this function are marked as addon-created. Only such logs can be removed with [[API:TextLogDestroy|TextLogDestroy]]; the client&amp;#039;s own logs (&amp;lt;code&amp;gt;&amp;quot;Chat&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;Combat&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;System&amp;quot;&amp;lt;/code&amp;gt; and so on) cannot.&lt;br /&gt;
* No error is raised in any case.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None. Only the usual &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error for wrong argument types.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_helpwindow/source/editappealwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TextLogCreate(&amp;quot;AppealLog&amp;quot;, 256)&lt;br /&gt;
TextLogAddFilterType(&amp;quot;AppealLog&amp;quot;, 999, L&amp;quot;&amp;quot;)&lt;br /&gt;
LogDisplayAddLog(&amp;quot;EditAppealWindowLogDisplay&amp;quot;, &amp;quot;AppealLog&amp;quot;, true)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:TextLogDestroy|TextLogDestroy]]&lt;br /&gt;
* [[API:TextLogAddFilterType|TextLogAddFilterType]]&lt;br /&gt;
* [[API:TextLogAddEntry|TextLogAddEntry]]&lt;br /&gt;
* [[API:LogDisplayAddLog|LogDisplayAddLog]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>