Skip to content

Commit 5b692a2

Browse files
committed
2022.6.3-Client(rewrite all code about configure(Really!))
1 parent 62e3118 commit 5b692a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+747
-880
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
1.07 KB
Binary file not shown.
0 Bytes
Binary file not shown.
2.03 KB
Binary file not shown.
0 Bytes
Binary file not shown.

.gradle/file-system.probe

0 Bytes
Binary file not shown.

README-en.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,54 @@
66
[中文](https://github.com/OptiJava/Optilog-Client/blob/master/README.md) |
77
[English](https://github.com/OptiJava/Optilog-Client/blob/master/README-en.md)
88

9-
**This is an open source logging framework written in Java language. It has more advantages than other open source logging frameworks (such as log4j and slf4j)**
9+
**This is an open source logging framework written in Java language. It has more advantages than other open source
10+
logging frameworks (such as log4j and slf4j)**
1011

11-
The wiki of optilog will be updated at any time. Problems or bugs will be raised on [issues](https://github.com/OptiJava/Optilog-Client/issues) or [discussions](https://github.com/OptiJava/Optilog-Client/discussions).
12+
The wiki of optilog will be updated at any time. Problems or bugs will be raised
13+
on [issues](https://github.com/OptiJava/Optilog-Client/issues)
14+
or [discussions](https://github.com/OptiJava/Optilog-Client/discussions).
1215

1316
**Be sure to read the [wiki](https://github.com/OptiJava/Optilog-Client/wiki) of this project before using it**
1417

15-
_If you like, you are welcome to contribute to optilog through fork. The code of this project is quite basic, and anyone can contribute_
18+
_If you like, you are welcome to contribute to optilog through fork. The code of this project is quite basic, and anyone
19+
can contribute_
1620

1721
## Optilog advantages
1822

19-
1. high performance: After initialization, another log (output to the screen + output to a file + output to the server through socket) can be output as fast as 8 milliseconds (it will be optimized later). Log4j should be at least 41 milliseconds.
23+
1. high performance: After initialization, another log (output to the screen + output to a file + output to the server
24+
through socket) can be output as fast as 8 milliseconds (it will be optimized later). Log4j should be at least 41
25+
milliseconds.
2026

21-
2. Placeholder convenience: optilog supports unlimited placeholders and can be reused (#1 #1 outputs the first placeholder twice). Log4j only supports 9 placeholders.
27+
2. Placeholder convenience: optilog supports unlimited placeholders and can be reused (#1 #1 outputs the first
28+
placeholder twice). Log4j only supports 9 placeholders.
2229

23-
3. Configuration file can be placed in any location. The name of the configuration file is unlimited. Two types of configuration files are supported. In log4j, the configuration file can only be in classpath and the name can only be log4j2 xml.
30+
3. Configuration file can be placed in any location. The name of the configuration file is unlimited. Two types of
31+
configuration files are supported. In log4j, the configuration file can only be in classpath and the name can only be
32+
log4j2 xml.
2433

2534
4. Support the client to send logs to [Server](https://github.com/OptiJava/Optilog-Server).
2635

2736
5. All possible exceptions in Optilog are basically captured without affecting the main logic.
2837

29-
6. You only need one jar package, and you can use it directly by typing in the classpath (I don't know the feeling of adding dozens of jar packages at once when using gradle).
38+
6. You only need one jar package, and you can use it directly by typing in the classpath (I don't know the feeling of
39+
adding dozens of jar packages at once when using gradle).
3040

3141
7. Suitable for beginners without complex configuration files.
3242

3343
8. Few [dependence](https://github.com/OptiJava/Optilog-Client/blob/master/README-en.md#dependency).
3444

35-
9. Class, method and other information output in the log are absolutely accurate, because Optilog uses StackTraceElement internally to determine these information, and there is no need to write the class instance when initializing the log.
45+
9. Class, method and other information output in the log are absolutely accurate, because Optilog uses StackTraceElement
46+
internally to determine these information, and there is no need to write the class instance when initializing the
47+
log.
3648

37-
10. Optilog can directly generate a default configuration file. Beginners do not need to look for the configuration file example ([Tutorial](https://github.com/OptiJava/Optilog-Client/wiki/%E6%9B%B4%E5%A4%9A%E5%8A%9F%E8%83%BD#%E5%85%AD%E7%94%9F%E6%88%90%E9%BB%98%E8%AE%A4%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6))
49+
10. Optilog can directly generate a default configuration file. Beginners do not need to look for the configuration file
50+
example ([Tutorial](https://github.com/OptiJava/Optilog-Client/wiki/%E6%9B%B4%E5%A4%9A%E5%8A%9F%E8%83%BD#%E5%85%AD%E7%94%9F%E6%88%90%E9%BB%98%E8%AE%A4%E7%9A%84%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6))
3851

39-
11. Support configuration files in multiple formats, including JSON, yaml, XML and properties. Support for .toml configuration files will be added later.
52+
11. Support configuration files in multiple formats, including JSON, yaml, XML and properties. Support for .toml
53+
configuration files will be added later.
4054

41-
12. Optilog supports configuration modification during runtime. Of course, only some configuration items of true and false can be modified. Output file paths cannot be modified.
55+
12. Optilog supports configuration modification during runtime. Of course, only some configuration items of true and
56+
false can be modified. Output file paths cannot be modified.
4257

4358
13. Support outputting logs to JDBC.
4459

@@ -53,8 +68,6 @@ _Generate by [carbon.now.sh](https://carbon.now.sh)_
5368

5469
## Dependency:
5570

56-
`com.google.code.gson:gson:2.9.0`
57-
\
5871
`com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.3`
5972
\
6073
`org.yaml:snakeyaml:1.30` `mysql:mysql-connector-java:8.0.29`

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ _使用[carbon.now.sh](https://carbon.now.sh)生成_
5353

5454
## Dependency:
5555

56-
`com.google.code.gson:gson:2.9.0`
57-
\
5856
`com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.3`
5957
\
6058
`org.yaml:snakeyaml:1.30`

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ repositories {
1212
dependencies {
1313
implementation 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
1414

15-
implementation 'com.google.code.gson:gson:2.9.0'
1615
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.3'
1716
implementation 'org.yaml:snakeyaml:1.30'
1817
runtimeOnly 'mysql:mysql-connector-java:8.0.29'

0 commit comments

Comments
 (0)