You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's useful for me for SEVERITY_MAP to provide a valid mapping for all syslog priorities. That way I can implement a --debug=[priority] command line argument and then call:
such that @logger.level ends up as a valid (i.e. not unknown) level.
Trouble is, there are 7 syslog priorities and 5 Logger levels. SyslogDevice.write needs a one-to-one mapping from Logger level to syslog priority, so I think I need a new data structure to map in the other direction.
I can define this mapping in my own code but it seems to fit well here...I'm a ruby noob so I'm not sure the best way to do this.
Thanks for your help.
The text was updated successfully, but these errors were encountered:
It's useful for me for SEVERITY_MAP to provide a valid mapping for all syslog priorities. That way I can implement a --debug=[priority] command line argument and then call:
such that @logger.level ends up as a valid (i.e. not unknown) level.
Trouble is, there are 7 syslog priorities and 5 Logger levels. SyslogDevice.write needs a one-to-one mapping from Logger level to syslog priority, so I think I need a new data structure to map in the other direction.
I can define this mapping in my own code but it seems to fit well here...I'm a ruby noob so I'm not sure the best way to do this.
Thanks for your help.
The text was updated successfully, but these errors were encountered: