• Toby Allen's avatar
    log: 'except' subdirective to skip logging certain requests (#2028) · 1896b420
    Toby Allen authored
    * proof of concept
    
    * Initial implementation with debug code
    
    * Tidy up debug code
    
    * remove unneeded import
    
    * removed extra line
    
    * Move ShouldLog function to rule entry Logger type
    
    * add tests for ShouldLog
    
    * Added tests for log exceptions
    
    * Fix logic
    
    * fix govet fail for test
    
    * Updates requested for code clarity
    
    * Update requested for style
    
    * log: Minor style tweaks to logic of log exceptions
    1896b420
logger.go 4.35 KB