Difference between revisions of "PHP Tail"
From Amahi Wiki
Line 3: | Line 3: | ||
* App Install | * App Install | ||
* HDA Updates | * HDA Updates | ||
+ | * HDA Production | ||
* Boot | * Boot | ||
* DNF | * DNF | ||
Line 13: | Line 14: | ||
"App Install" => "/var/log/amahi-app-installer.log", | "App Install" => "/var/log/amahi-app-installer.log", | ||
"HDA Updates" => "/var/log/hda-updates.log", | "HDA Updates" => "/var/log/hda-updates.log", | ||
+ | "HDA Production" => "/var/hda/platform/html/log/production.log", | ||
"Boot" => "/var/log/boot.log", | "Boot" => "/var/log/boot.log", | ||
"DNF" => "/var/log/dnf.log", | "DNF" => "/var/log/dnf.log", | ||
Line 22: | Line 24: | ||
"App Install" => "/var/log/amahi-app-installer.log", | "App Install" => "/var/log/amahi-app-installer.log", | ||
"HDA Updates" => "/var/log/hda-updates.log", | "HDA Updates" => "/var/log/hda-updates.log", | ||
+ | "HDA Production" => "/var/hda/platform/html/log/production.log", | ||
"Boot" => "/var/log/boot.log", | "Boot" => "/var/log/boot.log", | ||
"DNF" => "/var/log/dnf.log", | "DNF" => "/var/log/dnf.log", |
Revision as of 16:39, 25 July 2020
Work In Progress | |
---|---|
This article is currently undergoing major expansion or restructuring. You are welcome to assist by editing it as well. If this article has not been edited in several days, please remove this template. |
By default, PHP Tail is configured for the following log files:
- App Install
- HDA Updates
- HDA Production
- Boot
- DNF
To include additional logs, you must edit the Log.php (located in /var/hda/web-apps/phptail/html
) file from terminal. For example to add the Greyhole log file, you would make the following change:
- Before:
$tail = new PHPTail(array( "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", "DNF" => "/var/log/dnf.log", ));
- After:
$tail = new PHPTail(array( "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", "DNF" => "/var/log/dnf.log", "Greyhole" => "/var/log/greyhole.log", ));
You can add any log file, providing it is readable by your user. Those that require root
access, will not be work.
The order of the files is how they will appear in the Files drop-down menu in the application. If you want a specific file first, reorder the list in Log.php.