Skip to content

Commit 65aa3eb

Browse files
authored
Update README.md
1 parent acd28fa commit 65aa3eb

1 file changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,42 @@
1-
# java_WatchLogFile
1+
# Java Watch Live Log Files
2+
3+
24
Java example to watch live 2/n log files using threads
5+
6+
## Getting Started
7+
8+
The project, done in Java 8 using IntelliJ 2019.3 and Maven, simply shows examples of using org.apache.commons.io for log watch **only for reference**:
9+
The logs files in this example are in /logs.
10+
11+
This example shows very simply how to watch at two live log files in threads and show their update (together) in the console.
12+
13+
### Maven:
14+
15+
<dependencies>
16+
<dependency>
17+
<groupId>commons-io</groupId>
18+
<artifactId>commons-io</artifactId>
19+
<version>2.6</version>
20+
</dependency>
21+
</dependencies>
22+
<build>
23+
<plugins>
24+
<plugin>
25+
<groupId>org.apache.maven.plugins</groupId>
26+
<artifactId>maven-compiler-plugin</artifactId>
27+
<configuration>
28+
<source>1.8</source>
29+
<target>1.8</target>
30+
</configuration>
31+
</plugin>
32+
</plugins>
33+
</build>
34+
35+
36+
### Log Files
37+
38+
Location: /logs/app.log and /logs/debug.log
39+
40+
## Authors
41+
42+
- **Fausto Branco** - _Initial work_ - [Git faustobranco](https://github.com/faustobranco)

0 commit comments

Comments
 (0)