<?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%3ALogDisplayAddLog</id>
	<title>API:LogDisplayAddLog - 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%3ALogDisplayAddLog"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:LogDisplayAddLog&amp;action=history"/>
	<updated>2026-10-19T21:42:34Z</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:LogDisplayAddLog&amp;diff=30569&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:LogDisplayAddLog&amp;diff=30569&amp;oldid=prev"/>
		<updated>2026-10-16T19:46:41Z</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=LogDisplay}}&lt;br /&gt;
Makes a LogDisplay window show the entries of a text log.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LogDisplayAddLog(displayName, logName, showExisting)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;displayName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of a LogDisplay window.&lt;br /&gt;
;logName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the text log, for example &amp;lt;code&amp;gt;&amp;quot;Chat&amp;quot;&amp;lt;/code&amp;gt;.&lt;br /&gt;
;showExisting : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to also show the entries already in the log. With &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; only entries added afterwards appear.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* A LogDisplay can show several logs at once; the chat tabs show &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; and &amp;lt;code&amp;gt;&amp;quot;System&amp;quot;&amp;lt;/code&amp;gt; together.&lt;br /&gt;
* The display copies the log&amp;#039;s filter types (see [[API:TextLogAddFilterType|TextLogAddFilterType]]) when the log is added. Each starts enabled and white. Set them with [[API:LogDisplaySetFilterState|LogDisplaySetFilterState]] and [[API:LogDisplaySetFilterColor|LogDisplaySetFilterColor]].&lt;br /&gt;
* When the display shows log names ([[API:LogDisplaySetShowLogName|LogDisplaySetShowLogName]]), the name appears as &amp;lt;code&amp;gt;[&amp;#039;&amp;#039;logName&amp;#039;&amp;#039;]&amp;lt;/code&amp;gt;.&lt;br /&gt;
* The display keeps itself up to date: new entries in the log appear without further calls.&lt;br /&gt;
* If the log is already shown in this display, or the log does not exist, the call does nothing. The matching errors below are only raised while the client&amp;#039;s &amp;lt;code&amp;gt;&amp;quot;UiLog&amp;quot;&amp;lt;/code&amp;gt; text log exists and is enabled; otherwise the call fails silently.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TextLogDisplayAddLog&amp;#039;: Window %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TextLogDisplayAddLog&amp;#039;: Window %s is not a TextLogDisplay&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TextLogDisplayAddLog&amp;#039;: Log %s is already being displayed in %s&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;TextLogDisplayAddLog&amp;#039;: Log %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
: The last two only when &amp;lt;code&amp;gt;&amp;quot;UiLog&amp;quot;&amp;lt;/code&amp;gt; is enabled, see Details.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;ea_chatwindow/source/chatwindow.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-- add the Chat and Combat Log to the display&lt;br /&gt;
LogDisplayAddLog( tabLogDisplayName, &amp;quot;Chat&amp;quot;, true )&lt;br /&gt;
LogDisplayAddLog( tabLogDisplayName, &amp;quot;Combat&amp;quot;, true )&lt;br /&gt;
LogDisplayAddLog( tabLogDisplayName, &amp;quot;System&amp;quot;, true )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:LogDisplayRemoveLog|LogDisplayRemoveLog]]&lt;br /&gt;
* [[API:TextLogCreate|TextLogCreate]]&lt;br /&gt;
* [[API:LogDisplaySetFilterState|LogDisplaySetFilterState]]&lt;br /&gt;
* [[API:LogDisplaySetFilterColor|LogDisplaySetFilterColor]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>