Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki authored Nov 14, 2023
1 parent 388ec6c commit fc7298c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,26 @@ gem "redacting-logger", "~> X.X.X" # Replace X.X.X with the latest version

## Usage 💻

### Basic

```ruby
require "redacting_logger"

# Create a new logger
logger = RedactingLogger.new(redact_patterns: [/topsecret/])

# Log a message that contains some redacted pattern
logger.info("This is a topsecret message.")
```

This will output:

```text
I, [timestamp] INFO -- : This is a [REDACTED] message.
```

### Advanced

```ruby
require "redacting_logger"

Expand Down

0 comments on commit fc7298c

Please sign in to comment.