Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To add the functionality on which log to check, syslog or local logs we will follow this table -



PBS_SYSLOG  

PBS_LOCALLOG  

Syslog_attribute 

Which log to check in log_match() 

Retun Value

Not_set 

0 

0 

N/A 

Throw error


Not_set 

0 

1 

Throw error 


Not_set 

1 

0 

Local_Log 

local_log(x,y) 

Not_set 

1 

1 

Throw error 


set 

0 

0 

Syslog 

syslog(x,y)

set 

0 

1 

Syslog 

syslog(x,y)

set 

1 

0 

Match in both logs 

syslog(x,y)

set 

1 

1 

Syslog 

syslog(x,y)









 


In row 7 where we have to match in both syslog and local log, we would have to call _log_match() twice. 

...