Changes

From Amahi Wiki
Jump to: navigation, search
404 bytes added ,  17:22, 26 July 2020
no edit summary
* HDA Production
* Boot
* DNF
To include additional logs, you must edit the <i>Log.php</i> (located in <code>/var/hda/web-apps/phptail/html</code>) file .  Select <i>Settings</i> from terminalthe menu and choose <i>Edit Config</i> in the <b>PHP Tail Settings</b> popup window. You can now edit the <i>Log.php</i> in your web browser.  Once finished, choose <b>Save and Continue</b>. As a precaution, a timestamped backup of <i>Log.php</i> before the changes will be saved.  For example to add the <b>Greyhole</b> log file, you would make the following change:
:Before:
<pre>
"HDA Production" => "/var/hda/platform/html/log/production.log",
"Boot" => "/var/log/boot.log",
"DNF" => "/var/log/dnf.log",
));
</pre>
<pre>
$tail = new PHPTail(array(
"Greyhole" => "/var/log/greyhole.log",
"Sync" => "/var/log/amahi-sync.log",
"Anywhere" => "/var/log/amahi-anywhere.log",
"App Install" => "/var/log/amahi-app-installer.log",
"HDA Updates" => "/var/log/hda-updates.log",
"HDA Production" => "/var/hda/platform/html/log/production.log",
"Boot" => "/var/log/boot.log",
"DNFMessages" => "/var/log/dnf.logmessages", "GreyholeMonit" => "/var/log/greyholemonit.log", 
));
</pre>
You can add any log file, providing it is readable by your user. Those Unfortuntately, those that require <code>root</code> access, will not be work.
The order of the files is how they will appear in the <i>Files</i> drop-down menu in the application. If you want a specific file first, reorder the list in <i>Log.php</i>.
12,424

edits