Das Logging-Modul wird für die Zwecke der log eine Nachricht auf der Konsole verwendet wird, und ist gegebenenfalls für PHP-Fehlerprotokoll verwendet. Wir wollen sehen, wie die Installation und um das Protokoll für die Deklaration von Nachricht und in PHP-Fehlerprotokoll zu verwenden.
Der Befehl help dient als kurze Bedienungsanleitung, die den Benutzer über ihre Nutzung und Methoden führt. Sie legt die alternativen Parameter, die in der Erklärung verwendet werden kann, und ein Beispiel für die Syntax, um ein Protokoll zu definieren. Der Befehl zur Feststellung der Hilfe-Option verwendet, ist wie folgt:
ptdeploy Logging help
Der folgende Screenshot zeigt bildhaft über die Arbeit der Befehl help.
kevell@corp:/# ptdeploy Logging help
******************************
Use this to log a message to the Console, and optionally the php error log.
Logging, logging
- log
Logs a message the console or
example: ptconfigure logging log --php-log --log-message="Here is something logging to the console and error log"
------------------------------
End Help
******************************
The command used for installing the logging under ptdeploy is given below:
ptdeploy logging log
Nach der Eingabe wird der Befehl über das Verfahren der Montage wird in der folgenden tabellarischen Spalte dargestellt.
| Parameters | Alternative Parameters | Options | Kommentare |
|---|---|---|---|
| Install Logging? (Y/N) | Statt der Protokollierung können wir Protokollierung auch. | Y(Yes) | Wenn der Benutzer wünschen, den Installationsprozess können sie Eingang als Y. gehen |
| Install Logging? (Y/N) | Statt der Protokollierung können wir Protokollierung auch. | N(No) | Wenn der Benutzer wünschen, den Installationsprozess können sie Eingang als N. beenden| |
Wenn der Benutzer den Installationsprozess fort, der Prozess fordern Sie die Benutzer, um die Log-Nachricht mit der Frage spezifizieren
"Enter Log Message"
"Good Morning"
Sobald die Benutzereingabe die Nachricht, wird der Give Protokollmeldung auf dem Bildschirm erscheinen, wie gezeigt werden: “Good Morning”
Schließlich wird die Installation abgeschlossen. Der folgende Screenshot zeigt den Prozess der Installation bildlich.
kevell@corp:/# ptdeploy logging log
Install Logging? (Y/N)
Y
*******************************
* Golden Contact Computing *
* Logging! *
*******************************
Enter Log Message
Good Morning
[Pharaoh Logging] Good Morning
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Single App Installer:
--------------------------------------------
No Data.
------------------------------
Installer Finished
Die Syntax für die Deklaration des Protokolls für PHP-Fehlerprotokoll ist unten dargestellt:
ptconfigure logging log --php- log --log-message="Here is something logging to the console and error log"
Instead of
log-message="Here is something logging to the console and error log"
the user can add any text to the portion of log message depending upon their requirements.
kevell@corp:/# ptdeploy logging log --php-log --log-message="Here is something logging to the console and error log"
Install Logging? (Y/N)
y
*******************************
* Golden Contact Computing *
* Logging! *
*******************************
[Pharaoh Logging] Here is something logging to the console and error log
[Pharaoh Logging] Here is something logging to the console and error log
... All done!
*******************************
Thanks for installing , visit www.gcsoftshop.co.uk for more
******************************
Single App Installer:
--------------------------------------------
No Data.
------------------------------
Installer Finished
***********************