Add first wrapper to watch syslog entries
This commit is contained in:
parent
f3f8016fb2
commit
4bba9951df
|
@ -15,7 +15,8 @@
|
||||||
gnome.gnome-screenshot
|
gnome.gnome-screenshot
|
||||||
libnotify # Provide notify-send command
|
libnotify # Provide notify-send command
|
||||||
(callPackage ./packages/custom/update-nixos-system { })
|
(callPackage ./packages/custom/update-nixos-system { })
|
||||||
(callPackage ./packages/custom/watch-project-logs { })
|
(callPackage ./packages/custom/watch-project-logs-warning { })
|
||||||
|
(callPackage ./packages/custom/watch-project-logs-notice { })
|
||||||
|
|
||||||
networkmanager_dmenu
|
networkmanager_dmenu
|
||||||
i3blocks
|
i3blocks
|
||||||
|
|
21
home/packages/custom/watch-project-logs-notice/default.nix
Normal file
21
home/packages/custom/watch-project-logs-notice/default.nix
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
writeShellApplication
|
||||||
|
}:
|
||||||
|
|
||||||
|
writeShellApplication {
|
||||||
|
name = "custom-watch-project-logs-notice";
|
||||||
|
|
||||||
|
# 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
|
||||||
|
# - https://en.wikipedia.org/wiki/Syslog#Severity_level
|
||||||
|
|
||||||
|
text = ''
|
||||||
|
journalctl -f \
|
||||||
|
--identifier TYPO3 \
|
||||||
|
--identifier php \
|
||||||
|
--priority notice..debug \
|
||||||
|
--output cat \
|
||||||
|
--output-fields=SYSLOG_TIMESTAMP,_CMDLINE,MESSAGE
|
||||||
|
'';
|
||||||
|
}
|
|
@ -3,17 +3,19 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
writeShellApplication {
|
writeShellApplication {
|
||||||
name = "custom-watch-project-logs";
|
name = "custom-watch-project-logs-warning";
|
||||||
|
|
||||||
# Futher info:
|
# Futher info:
|
||||||
# - https://www.php.net/manual/en/errorfunc.configuration.php
|
# - 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
|
# - https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/Logging/Writers/Index.html#syslogwriter
|
||||||
|
# - https://en.wikipedia.org/wiki/Syslog#Severity_level
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
journalctl -f \
|
journalctl -f \
|
||||||
--identifier TYPO3 \
|
--identifier TYPO3 \
|
||||||
--identifier php \
|
--identifier php \
|
||||||
|
--priority warning \
|
||||||
--output cat \
|
--output cat \
|
||||||
--output-fields=MESSAGE,_CMDLINE
|
--output-fields=SYSLOG_TIMESTAMP,_CMDLINE,MESSAGE
|
||||||
'';
|
'';
|
||||||
}
|
}
|
Loading…
Reference in a new issue