<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Config_files</id>
	<title>Config files - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://opentransactions.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Config_files"/>
	<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Config_files&amp;action=history"/>
	<updated>2026-05-25T11:02:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.2</generator>
	<entry>
		<id>http://opentransactions.org/wiki/index.php?title=Config_files&amp;diff=110&amp;oldid=prev</id>
		<title>Cryptoman: Created page with &quot;'''.ini file:'''  When either the OT Server (transaction.exe), or the OT command-line test client (testwallet.exe) starts up, it tries to read from the ini file. The '''locati...&quot;</title>
		<link rel="alternate" type="text/html" href="http://opentransactions.org/wiki/index.php?title=Config_files&amp;diff=110&amp;oldid=prev"/>
		<updated>2013-06-12T13:48:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;.ini file:&amp;#039;&amp;#039;&amp;#039;  When either the OT Server (transaction.exe), or the OT command-line test client (testwallet.exe) starts up, it tries to read from the ini file. The &amp;#039;&amp;#039;&amp;#039;locati...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''.ini file:'''&lt;br /&gt;
&lt;br /&gt;
When either the OT Server (transaction.exe), or the OT command-line test client (testwallet.exe) starts up, it tries to read from the ini file. The '''location of the ini file''' is subject to change but for now, it is: &amp;lt;code&amp;gt;C:\ot.ini&amp;lt;/code&amp;gt; (Windows systems) &amp;lt;code&amp;gt;~/.ot_ini&amp;lt;/code&amp;gt; (Non-Windows)&lt;br /&gt;
&lt;br /&gt;
If the ini file fails opening, then OT will assuming the data_folder path is: &amp;lt;code&amp;gt;./data_folder&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The ini file currently only stores the DEFAULT PATHS for the data_folder. Here's the ini file on my system (located at &amp;lt;code&amp;gt;~/.ot_ini&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
;; Open-Transactions ini file&lt;br /&gt;
&lt;br /&gt;
[paths]&lt;br /&gt;
client_path=/Users/au/Projects/Open-Transactions/testwallet/data_folder&lt;br /&gt;
server_path=/Users/au/Projects/Open-Transactions/transaction/data_folder&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(You don't ''have'' to use the .ini file, it's just a convenience. You'll otherwise have to provide these paths explicitly, whenever you start OT.)&lt;br /&gt;
&lt;br /&gt;
'''Eventually the ini file will store all sorts of things. Suggestions?'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
'''Config Files'''&lt;br /&gt;
&lt;br /&gt;
While the ini files are per-user, the config files are per-application. When Open-Transactions starts up, the server and client will each try to read from their respective config files.&lt;br /&gt;
&lt;br /&gt;
The config file is located relative to the data_folder location. When OT starts up, the initial data_folder path is read either A. from your ini file, or B. passed in on the command line, or C. set by a call to OT_API_Init(const char * szPath).&lt;br /&gt;
&lt;br /&gt;
Continuing the above example, this &amp;amp;quot;main path&amp;amp;quot; aka &amp;amp;quot;data_folder path&amp;amp;quot; would be: &amp;lt;code&amp;gt;/Users/au/Projects/Open-Transactions/testwallet/data_folder&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
From there, an OT client will assume that its configuration file is named &amp;amp;quot;ot_client.cfg&amp;amp;quot;, and that it can be found in that folder, but ONE LEVEL UP. That is, &amp;lt;code&amp;gt;/Users/au/Projects/Open-Transactions/testwallet/data_folder/../ot_client.cfg&amp;lt;/code&amp;gt; (Meaning, it's actually looking here: &amp;lt;code&amp;gt;/Users/au/Projects/Open-Transactions/testwallet/ot_client.cfg&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
For the OT server, the config file would similarly be located at: &amp;lt;code&amp;gt;/Users/au/Projects/Open-Transactions/transaction/data_folder/../ot_server.cfg&amp;lt;/code&amp;gt; aka: &amp;lt;code&amp;gt;/Users/au/Projects/Open-Transactions/transaction/ot_server.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(The location is one level up, SO THAT you can swap out your data_folder indiscriminately, yet without losing your config file each time.)&lt;br /&gt;
&lt;br /&gt;
Here are the contents of my ot_client.cfg file (located at &amp;lt;code&amp;gt;Open-Transactions/testwallet/ot_client.cfg&amp;lt;/code&amp;gt;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
;; Open-Transactions client-side config file.&lt;br /&gt;
&lt;br /&gt;
[logging]&lt;br /&gt;
logfile_path=/Users/au/Projects/Open-Transactions/testwallet/ot.log&lt;br /&gt;
log_level=3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
'''LOGFILE'''&lt;br /&gt;
&lt;br /&gt;
If the above &amp;lt;code&amp;gt;logfile_path&amp;lt;/code&amp;gt; is set (as above), then the OT API will log to that file. Otherwise all of the logs are outputted to stderr.&lt;br /&gt;
&lt;br /&gt;
(OT no longer logs to stdout, in preparation for upcoming command-line utilities. )&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;log_level&amp;lt;/code&amp;gt; ranges from -1 (no output) to 5 (very verbose / debugging). Use 5 to see many logs. 2 or 3 should be plenty high enough for most people, with 0 and 1 preferred.&lt;br /&gt;
&lt;br /&gt;
'''What kinds of values would YOU like to see in the config file? Let me know!'''&lt;/div&gt;</summary>
		<author><name>Cryptoman</name></author>
		
	</entry>
</feed>