Changes

From Amahi Wiki
Jump to: navigation, search
1,170 bytes added ,  16:28, 25 July 2020
no edit summary
{{WorkInProgress}}
By default, [http://www.amahi.org/apps/php-tail PHP Tail] is configured for the following log files:
* App Install
* HDA Updates
* 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 from terminal. For example to add the <b>Greyhole</b> log file, you would make the following change:
:Before:
<pre>
$tail = new PHPTail(array(
"App Install" => "/var/log/amahi-app-installer.log",
"HDA Updates" => "/var/log/hda-updates.log",
"Boot" => "/var/log/boot.log",
"DNF" => "/var/log/dnf.log",
));
</pre>
:After:
<pre>
$tail = new PHPTail(array(
"App Install" => "/var/log/amahi-app-installer.log",
"HDA Updates" => "/var/log/hda-updates.log",
"Boot" => "/var/log/boot.log",
"DNF" => "/var/log/dnf.log",
"Greyhole" => "/var/log/greyhole.log",
 
));
</pre>
You can add any log file, providing it is readable by your user. 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