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
liquibase-slf4j is licensed under the [MIT License](http://www.opensource.org/licenses/mit-license.php)
35
43
36
44
## Notes
37
45
This logger has a priority number of 5. If there is more than one Liquibase logger on the classpath the one with the
38
-
highest priority will be used.
46
+
highest priority will be used. The priority number can be changed by setting the system property
47
+
`com.mattbertolini.liquibase.logging.slf4j.Slf4jLogService.priority` to an integer value of your choice.
48
+
49
+
Version 4 of Liquibase introduced a new plugin loading mechanism based on the Java
50
+
[ServiceLoader](https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html). Version 3.0.0 of this logger
51
+
conforms to this new loader mechanism. If you are using Liquibase versions lower than 4, continue to use version 2.0.0
52
+
of this library.
39
53
40
54
Liquibase version 3.4.0 had an issue loading third party loggers in some situations. This logger may not work on that
41
-
version. It is recommended that you upgrade to Liquibase 3.4.1 which addresses this issue.
55
+
version. It is recommended to upgrade to Liquibase 3.4.1 which addresses this issue.
42
56
43
57
### Log Level Mappings
44
58
@@ -48,9 +62,17 @@ version. It is recommended that you upgrade to Liquibase 3.4.1 which addresses t
48
62
<th>SLF4J Level</th>
49
63
</tr>
50
64
<tr>
65
+
<td>~~Debug~~ (Deprecated)</td>
51
66
<td>Debug</td>
67
+
</tr>
68
+
<tr>
69
+
<td>Fine</td>
52
70
<td>Debug</td>
53
71
</tr>
72
+
<tr>
73
+
<td>Config</td>
74
+
<td>Info</td>
75
+
</tr>
54
76
<tr>
55
77
<td>Info</td>
56
78
<td>Info</td>
@@ -67,8 +89,8 @@ version. It is recommended that you upgrade to Liquibase 3.4.1 which addresses t
67
89
68
90
## Build and Test
69
91
### Requirements
70
-
*[Apache Ant](http://ant.apache.org/) - Version 1.8 or higher.
71
-
* JDK 6 or higher (Compiled with 1.6 source and target).
92
+
*[Apache Ant](http://ant.apache.org/) - Version 1.10.6 or higher.
93
+
* JDK 8 or higher (Compiled with 1.8 source and target).
72
94
73
95
### Build
74
96
To build this project, clone the repo and run the ```ant``` command:
@@ -78,43 +100,56 @@ $ cd liquibase-slf4j
78
100
$ ant
79
101
```
80
102
81
-
The distributable jar files will be located in the ```dist``` folder. The build reports (unit test, dependency,
82
-
coverage, etc.) will be located in the ```build/reports``` dir.
103
+
The distributable jar files will be located in the ```dist``` folder. The build reports (unit test, coverage, etc.)
104
+
will be located in the ```build/reports``` dir.
83
105
84
-
To run the unit tests run the ```run-unit-tests``` task.
106
+
To list all available tasks:
85
107
```
86
-
$ ant run-unit-tests
108
+
$ ant -p
87
109
```
88
110
89
111
## Bugs
90
-
Please report any bugs in the issue tracker above. Please be as detailed as possible in your report so I can create
112
+
Please report any bugs in the issue tracker above. Please be as detailed as possible in the report, so I can create
91
113
unit tests to verify the problem is fixed.
92
114
93
115
## Release Notes
94
116
117
+
**3.0.0 - 2020-07-23**
118
+
119
+
- Upgraded to Liquibase version 4.0.0. This is a breaking change as the logging API changed significantly. Use version
120
+
2.x if you are using Liquibase versions lower than 4.0.0.
121
+
- Upgraded to SLF4J 1.7.30.
122
+
- Added the ability to change the priority number of the logger by setting a Java property. To change the priority, set
123
+
the `com.mattbertolini.liquibase.logging.slf4j.Slf4jLogService.priority` property to an integer value.
124
+
- Repackaged logger now that package name is no longer used for locating third-party loggers.
125
+
- Java 8 is now the minimum supported JDK version.
126
+
- Added an `Automatic-Module-Name` to support the Java 9+ module system. The module name is `com.mattbertolini.liquibase.logging.slf4j`.
127
+
- Overhauled build files.
128
+
129
+
95
130
**2.0.0 - 2015-12-16**
96
131
97
-
* Switched the dependency scope of SLF4J and Liquibase to `provided`. This is because most users are already including
132
+
- Switched the dependency scope of SLF4J and Liquibase to `provided`. This is because most users are already including
98
133
their own versions of these libraries and the versions are often much newer than what is defined in this library. By
99
134
marking them as `provided` it helps prevent version conflicts and extra exclusions in project files. For an example of
100
135
this, check out the POM file from [Dropwizard](https://github.com/dropwizard/dropwizard/blob/a0bdb73053872e73762af4f940b893f78a363c2e/dropwizard-bom/pom.xml#L145-L159)
101
-
* The minimum required Liquibase version is now 3.2.0. This is done to take advantage of updates to `AbstractLogger`.
136
+
- The minimum required Liquibase version is now 3.2.0. This is done to take advantage of updates to `AbstractLogger`.
102
137
103
138
**1.2.1 - 2013-10-12**
104
139
105
-
* Only printing the changeLogName and changeSetName if they are provided. This gets rid of the annoying nulls printed
140
+
- Only printing the changeLogName and changeSetName if they are provided. This gets rid of the annoying nulls printed
106
141
in logs.
107
142
108
143
**1.2.0 - 2013-09-30**
109
144
110
-
* Upgrading to Liquibase version 3.0.5 to add new required methods.
145
+
- Upgrading to Liquibase version 3.0.5 to add new required methods.
0 commit comments