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:
Daniel Siepmann 2024-06-27 08:05:49 +02:00
parent c9383acd36
commit f3f8016fb2
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
6 changed files with 24 additions and 1 deletions

View file

@ -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 => [
],
],
];

View file

@ -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

View 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.

View file

@ -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