You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: refactor documentation structure and add MIT license
Reorganize documentation to separate user and developer concerns:
- README.md now focuses on end-users (installation, usage, features)
- CONTRIBUTING.md contains all development information (architecture,
performance, testing, dependencies, workflows)
- Removed cargo commands from user-facing docs
- Added MIT LICENSE file
- Updated Cargo.toml with package metadata (license, description,
repository, keywords, categories)
- Fixed edition from 2024 to 2021
This makes the README cleaner and more accessible for users while
keeping comprehensive development documentation in CONTRIBUTING.md.
Download the latest release for your platform from the [Releases page](https://github.com/raaymax/lazytail/releases):
65
44
66
45
```bash
@@ -83,28 +62,14 @@ chmod +x lazytail
83
62
sudo mv lazytail /usr/local/bin/
84
63
```
85
64
86
-
### Build from Source
87
-
88
-
```bash
89
-
git clone https://github.com/raaymax/lazytail.git
90
-
cd lazytail
91
-
cargo build --release
92
-
sudo cp target/release/lazytail /usr/local/bin/
93
-
```
65
+
For building from source, see [CONTRIBUTING.md](CONTRIBUTING.md).
94
66
95
67
## Usage
96
68
97
-
Run the application with a log file:
69
+
Run LazyTail with a log file:
98
70
99
71
```bash
100
-
cargo run --release -- test.log
101
-
```
102
-
103
-
Or build and run the binary:
104
-
105
-
```bash
106
-
cargo build --release
107
-
./target/release/lazytail test.log
72
+
lazytail /path/to/your/logfile.log
108
73
```
109
74
110
75
### Command Line Options
@@ -130,60 +95,25 @@ Options:
130
95
131
96
The filter searches through all lines in the background without blocking the UI, so even with large files the interface remains responsive.
132
97
133
-
### Testing Live Reload and Follow Mode
134
-
135
-
Test the file watching feature with the included log generator:
136
-
137
-
```bash
138
-
# Terminal 1: Start generating logs
139
-
./generate_logs.sh live_test.log
140
-
141
-
# Terminal 2: Watch the logs in real-time
142
-
cargo run --release -- live_test.log
143
-
```
98
+
### Using Follow Mode
144
99
145
-
**Using Follow Mode:**
100
+
**Follow Mode** allows you to automatically scroll to new log lines as they're written to the file (like `tail -f`):
146
101
1. Press `f` to enable follow mode - the status bar will show "FOLLOW"
147
102
2. New log lines will automatically scroll into view as they arrive
148
103
3. Press `f` again to disable follow mode and manually navigate
149
104
4. Any manual scroll action (↑/↓/PgUp/PgDn/g/G) automatically disables follow mode
150
105
151
-
New log lines will appear automatically as they're written to the file. File watching is enabled by default, but you can disable it with `--no-watch` if needed.
152
-
153
-
### Testing with Colored Logs
154
-
155
-
Test with ANSI-colored logs using the colored log generator:
106
+
File watching is enabled by default, so new log lines will appear automatically as they're written to the file. You can disable it with `--no-watch` if needed.
156
107
157
-
```bash
158
-
# Terminal 1: Generate colored logs
159
-
./generate_colored_logs.sh live_test_colored.log
160
-
161
-
# Terminal 2: View the logs with full color rendering
162
-
cargo run --release -- live_test_colored.log
163
-
```
108
+
### ANSI Color Support
164
109
165
-
The viewer parses ANSI escape codes and renders them in full color! Colored logs from other tools (like `docker logs`, `kubectl logs`, or application logs with color formatting) display beautifully:
110
+
LazyTail parses ANSI escape codes and renders them in full color! Colored logs from other tools (like `docker logs`, `kubectl logs`, or application logs with color formatting) display beautifully:
166
111
-**Green** for INFO
167
112
-**Cyan** for DEBUG
168
113
-**Yellow** for WARN
169
114
-**Red** for ERROR
170
115
- Plus all other ANSI colors and styles (bold, dim, etc.)
171
116
172
-
## Testing
173
-
174
-
Test log files are included:
175
-
-`test.log` - Plain text logs with various log levels (INFO, DEBUG, WARN, ERROR)
176
-
-`generate_logs.sh` - Script to generate plain text logs
177
-
-`generate_colored_logs.sh` - Script to generate ANSI-colored logs
178
-
179
-
## Performance
180
-
181
-
The viewer is designed to handle large log files efficiently:
182
-
-**Line indexing**: O(n) one-time indexing, then O(1) random access
183
-
-**Viewport rendering**: Only renders visible lines
184
-
-**Background filtering**: Non-blocking filter execution in separate thread
185
-
-**Memory usage**: ~constant regardless of file size (only viewport buffer in RAM)
186
-
187
117
## Upcoming Features
188
118
189
119
-[x] File watching with auto-reload (inotify)
@@ -200,17 +130,6 @@ The viewer is designed to handle large log files efficiently:
0 commit comments