Revise logging .conf files

This commit is contained in:
ionutboangiu
2023-06-15 06:36:04 -04:00
committed by Dan Christian Bogos
parent c423d1e81f
commit 262c1bd981
2 changed files with 5 additions and 3 deletions

View File

@@ -8,6 +8,6 @@
sharedscripts
su root adm
postrotate
/usr/lib/rsyslog/rsyslog-rotate
/usr/lib/rsyslog/rsyslog-rotate
endscript
}

View File

@@ -1,2 +1,4 @@
if $programname contains "cgr-engine" or $programname contains "CGRateS" then /var/log/cgrates/CGRateS.log
& stop
if ($programname startswith 'cgr-engine' or $msg contains 'CGRateS') then {
action(type="omfile" File="/var/log/cgrates/CGRateS.log")
stop
}