|
1 | 1 | /**
|
2 |
| - * Copyright 2009-2017 the original author or authors. |
| 2 | + * Copyright 2009-2018 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
20 | 20 | import org.apache.logging.log4j.Level;
|
21 | 21 | import org.apache.logging.log4j.Marker;
|
22 | 22 | import org.apache.logging.log4j.MarkerManager;
|
| 23 | +import org.apache.logging.log4j.message.Message; |
23 | 24 | import org.apache.logging.log4j.message.SimpleMessage;
|
24 | 25 | import org.apache.logging.log4j.spi.AbstractLogger;
|
25 | 26 | import org.apache.logging.log4j.spi.ExtendedLoggerWrapper;
|
@@ -51,27 +52,27 @@ public boolean isTraceEnabled() {
|
51 | 52 |
|
52 | 53 | @Override
|
53 | 54 | public void error(String s, Throwable e) {
|
54 |
| - log.logIfEnabled(FQCN, Level.ERROR, MARKER, new SimpleMessage(s), e); |
| 55 | + log.logIfEnabled(FQCN, Level.ERROR, MARKER, (Message) new SimpleMessage(s), e); |
55 | 56 | }
|
56 | 57 |
|
57 | 58 | @Override
|
58 | 59 | public void error(String s) {
|
59 |
| - log.logIfEnabled(FQCN, Level.ERROR, MARKER, new SimpleMessage(s), null); |
| 60 | + log.logIfEnabled(FQCN, Level.ERROR, MARKER, (Message) new SimpleMessage(s), null); |
60 | 61 | }
|
61 | 62 |
|
62 | 63 | @Override
|
63 | 64 | public void debug(String s) {
|
64 |
| - log.logIfEnabled(FQCN, Level.DEBUG, MARKER, new SimpleMessage(s), null); |
| 65 | + log.logIfEnabled(FQCN, Level.DEBUG, MARKER, (Message) new SimpleMessage(s), null); |
65 | 66 | }
|
66 | 67 |
|
67 | 68 | @Override
|
68 | 69 | public void trace(String s) {
|
69 |
| - log.logIfEnabled(FQCN, Level.TRACE, MARKER, new SimpleMessage(s), null); |
| 70 | + log.logIfEnabled(FQCN, Level.TRACE, MARKER, (Message) new SimpleMessage(s), null); |
70 | 71 | }
|
71 | 72 |
|
72 | 73 | @Override
|
73 | 74 | public void warn(String s) {
|
74 |
| - log.logIfEnabled(FQCN, Level.WARN, MARKER, new SimpleMessage(s), null); |
| 75 | + log.logIfEnabled(FQCN, Level.WARN, MARKER, (Message) new SimpleMessage(s), null); |
75 | 76 | }
|
76 | 77 |
|
77 | 78 | }
|
0 commit comments