Skip to content

Commit 97f3f19

Browse files
ream88claude
andcommitted
Bump version to 0.2.0
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 05d6f47 commit 97f3f19

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ optionally add a directional indicator (`"< "` or `"> "`) when needed.
1111
```elixir
1212
def deps do
1313
[
14-
{:logger_binary, "~> 0.1.0"}
14+
{:logger_binary, "~> 0.2.0"}
1515
]
1616
end
1717
```
@@ -26,7 +26,7 @@ config :logger, :console,
2626

2727
## Features
2828

29-
* Formats binary messages as uppercase hexadecimal strings.
29+
* Formats binary data as uppercase hexadecimal strings via `LoggerBinary.format/1`.
3030
* Prepends formatted binary messages with a directional indicator if the `:direction`
3131
metadata is present. Supported values for the `:direction` metadata are `:in` and `:out`.
3232
* Uses the default Logger format for all other types of messages (e.g., printable strings and charlists).
@@ -50,3 +50,15 @@ Without directional metadata, it simply logs the formatted binary:
5050
Logger.debug(<<0x01, 0x02, 0x03>>)
5151
# Logs: "[debug] 01 02 03"
5252
```
53+
54+
## Direct Formatting
55+
56+
You can also format binary data directly without logging:
57+
58+
```elixir
59+
LoggerBinary.format(<<0xDE, 0xAD, 0xBE, 0xEF>>)
60+
# Returns: "DE AD BE EF"
61+
62+
LoggerBinary.format(:timeout)
63+
# Returns: ":timeout"
64+
```

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule LoggerBinary.MixProject do
44
def project do
55
[
66
app: :logger_binary,
7-
version: "0.1.0",
7+
version: "0.2.0",
88
elixir: "~> 1.15",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),

0 commit comments

Comments
 (0)