Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
navinpeiris committed Oct 14, 2024
1 parent 86180d0 commit 68b08da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Logster provides `debug`, `info`, `warning`, `error` etc convenience functions t
For example:

```elixir
Logger.info(service: :payments, event: :received, amount: 1000, customer: 123)
Logster.info(service: :payments, event: :received, amount: 1000, customer: 123)
```

will output the following to the logs:
Expand All @@ -108,7 +108,7 @@ will output the following to the logs:
You can also provide a function to be called lazily, which will only be called if the log level is enabled:

```elixir
Logger.debug(fn ->
Logster.debug(fn ->
# some potentially expensive operation
# won't be called if the log level is not enabled
customer = get_customer_id()
Expand Down

0 comments on commit 68b08da

Please sign in to comment.