<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Reality_Logger</id>
	<title>Reality Logger - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bf2tech.uturista.pt/index.php?action=history&amp;feed=atom&amp;title=Reality_Logger"/>
	<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Reality_Logger&amp;action=history"/>
	<updated>2026-08-06T00:00:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://bf2tech.uturista.pt/index.php?title=Reality_Logger&amp;diff=14&amp;oldid=prev</id>
		<title>UTurista: Creating page</title>
		<link rel="alternate" type="text/html" href="https://bf2tech.uturista.pt/index.php?title=Reality_Logger&amp;diff=14&amp;oldid=prev"/>
		<updated>2017-09-09T23:10:03Z</updated>

		<summary type="html">&lt;p&gt;Creating page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The Reality Logger is used to easily log to a file.&lt;br /&gt;
&lt;br /&gt;
==Creating a logger==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;realitylogger.createLogger( name, path, fileName, continous )&amp;lt;/code&amp;gt;&lt;br /&gt;
* name - a unique key used to select the logger&lt;br /&gt;
* Path - Diretory the log file gets created in&lt;br /&gt;
* FileName - Name of the file created. If not contionous should specify a date format (strftime format)&lt;br /&gt;
* Continous - Whether to log to one file all the time or create new one every round&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
createLogger may be called many times with the same key, repeating calls will be properly filtered out. It is not required to put it in an init() function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Using a logger==&lt;br /&gt;
&lt;br /&gt;
To acquire a logger:&lt;br /&gt;
&amp;lt;code&amp;gt;X = realitylogger.RealityLogger[key]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Basic logging commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;X.logLine(line)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;X.logLines(lines)&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>UTurista</name></author>
	</entry>
</feed>