Skip to content

Commit

Permalink
Release 0.3.28
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Oct 15, 2024
1 parent afb63a7 commit 4b5b27f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tlparse"
version = "0.3.27"
version = "0.3.28"
edition = "2021"
authors = ["Edward Z. Yang <[email protected]>"]
description = "Parse TORCH_LOG logs produced by PyTorch torch.compile"
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Feed input into tlparse:
tlparse /tmp/my_traced_log -o tl_out/
```

# Adding custom parsers
## Adding custom parsers
You can extend tlparse with custom parsers which take existing structured log data and output any file. To do so, first implement StructuredLogParser with your own trait:

```Rust
Expand All @@ -39,3 +39,9 @@ impl StructuredLogParser for MyCustomParser {
}
}
```

## How to release

1. Make a release commit by updating Cargo.toml and then running cargo update
2. Push the release commit and a tag for it. This will trigger PyPI release
3. cargo publish

0 comments on commit 4b5b27f

Please sign in to comment.