Extend integration of syslog/journalctl for TYPO3 projects
Also provide custom command as wrapper around the output as first step.
This commit is contained in:
parent
c9383acd36
commit
f3f8016fb2
|
@ -15,6 +15,8 @@ $GLOBALS['TYPO3_CONF_VARS']['LOG']['writerConfiguration'] = [
|
|||
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
|
||||
'logFileInfix' => 'warn',
|
||||
],
|
||||
\TYPO3\CMS\Core\Log\Writer\SyslogWriter::class => [
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
|
@ -30,5 +32,7 @@ $GLOBALS['TYPO3_CONF_VARS']['LOG']['TYPO3']['CMS']['deprecations']['writerConfig
|
|||
\TYPO3\CMS\Core\Log\Writer\FileWriter::class => [
|
||||
'logFileInfix' => 'deprecation',
|
||||
],
|
||||
\TYPO3\CMS\Core\Log\Writer\SyslogWriter::class => [
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
Binary file not shown.
|
@ -15,6 +15,7 @@
|
|||
gnome.gnome-screenshot
|
||||
libnotify # Provide notify-send command
|
||||
(callPackage ./packages/custom/update-nixos-system { })
|
||||
(callPackage ./packages/custom/watch-project-logs { })
|
||||
|
||||
networkmanager_dmenu
|
||||
i3blocks
|
||||
|
|
19
home/packages/custom/watch-project-logs/default.nix
Normal file
19
home/packages/custom/watch-project-logs/default.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
writeShellApplication
|
||||
}:
|
||||
|
||||
writeShellApplication {
|
||||
name = "custom-watch-project-logs";
|
||||
|
||||
# Futher info:
|
||||
# - https://www.php.net/manual/en/errorfunc.configuration.php
|
||||
# - https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Logging/Writers/Index.html#syslogwriter
|
||||
|
||||
text = ''
|
||||
journalctl -f \
|
||||
--identifier TYPO3 \
|
||||
--identifier php \
|
||||
--output cat \
|
||||
--output-fields=MESSAGE,_CMDLINE
|
||||
'';
|
||||
}
|
Binary file not shown.
|
@ -67,7 +67,6 @@ in {
|
|||
display_errors = 1
|
||||
log_errors = 1
|
||||
error_reporting = E_ALL
|
||||
# One can watch all errors via command: journalctl -f --identifier php -o verbose --output-fields=_SYSTEMD_UNIT,MESSAGE
|
||||
error_log = syslog
|
||||
|
||||
xdebug.mode = debug
|
||||
|
|
Loading…
Reference in a new issue