diff --git a/home/files/typo3-configuration/Logging.php b/home/files/typo3-configuration/Logging.php index a06f5c4..f525406 100644 --- a/home/files/typo3-configuration/Logging.php +++ b/home/files/typo3-configuration/Logging.php @@ -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 => [ + ], ], ]; diff --git a/home/files/typo3-configuration/client-specific/Sac.php b/home/files/typo3-configuration/client-specific/Sac.php index be05f5a..4884eec 100644 Binary files a/home/files/typo3-configuration/client-specific/Sac.php and b/home/files/typo3-configuration/client-specific/Sac.php differ diff --git a/home/packages.nix b/home/packages.nix index c7c1174..68bbaa7 100644 --- a/home/packages.nix +++ b/home/packages.nix @@ -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 diff --git a/home/packages/custom/watch-project-logs/default.nix b/home/packages/custom/watch-project-logs/default.nix new file mode 100644 index 0000000..767389c --- /dev/null +++ b/home/packages/custom/watch-project-logs/default.nix @@ -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 + ''; +} diff --git a/projects/sac/sac-shell.nix b/projects/sac/sac-shell.nix index 46f651b..21a05eb 100644 Binary files a/projects/sac/sac-shell.nix and b/projects/sac/sac-shell.nix differ diff --git a/systems/web-development/typo3.nix b/systems/web-development/typo3.nix index 374b068..6409741 100644 --- a/systems/web-development/typo3.nix +++ b/systems/web-development/typo3.nix @@ -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