Skip to content

Commit c6fd3f4

Browse files
rstoyanchevrobertroeser
authored andcommitted
Add log4j dependnecy to examples project (#455)
Now there is logging outupt. I've also tweaked the logging settings to start at DEBUG and to show the class name at least.
1 parent edd9938 commit c6fd3f4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

rsocket-examples/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies {
1919
compile project(':rsocket-spectator')
2020
compile project(':rsocket-transport-netty')
2121
compile project(':rsocket-transport-local')
22+
compile "org.slf4j:slf4j-log4j12:1.7.25"
2223

2324
testCompile project(':rsocket-test')
2425
}

rsocket-examples/src/main/resources/log4j.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
log4j.rootLogger=INFO, stdout
16+
log4j.rootLogger=DEBUG, stdout
1717

1818
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
1919
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
20-
log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %5p [%t] - %m%n
20+
log4j.appender.stdout.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %5p [%t] %c{1} - %m%n

0 commit comments

Comments
 (0)