C# Class SharpRaven.Logging.LogScrubber

Scrubs a JSON packet for sensitive information with CreditCardFilter, PhoneNumberFilter and SocialSecurityFilter.
Inheritance: IScrubber
Mostra file Open project: getsentry/raven-csharp Class Usage Examples

Public Methods

Method Description
LogScrubber ( ) : System

Initializes a new instance of the LogScrubber class and adds CreditCardFilter and US-style PhoneNumberFilter to the filter collection used to scrub the JSON packet.

Scrub ( string input ) : string

The main interface for scrubbing a JSON packet, called before compression (if enabled)

Method Details

LogScrubber() public method

Initializes a new instance of the LogScrubber class and adds CreditCardFilter and US-style PhoneNumberFilter to the filter collection used to scrub the JSON packet.
public LogScrubber ( ) : System
return System

Scrub() public method

The main interface for scrubbing a JSON packet, called before compression (if enabled)
public Scrub ( string input ) : string
input string The serialized JSON packet is given here.
return string