You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2015/09/19 07:21:14 UTC
logging-log4j2 git commit: Add missing '@Deprecated' annotations.
Repository: logging-log4j2
Updated Branches:
refs/heads/master ea160880f -> f645d04b7
Add missing '@Deprecated' annotations.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/f645d04b
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/f645d04b
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/f645d04b
Branch: refs/heads/master
Commit: f645d04b7256eae32fbe976e3673ff2c39446c9f
Parents: ea16088
Author: ggregory <gg...@apache.org>
Authored: Fri Sep 18 22:21:12 2015 -0700
Committer: ggregory <gg...@apache.org>
Committed: Fri Sep 18 22:21:12 2015 -0700
----------------------------------------------------------------------
.../java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/f645d04b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
index a68693b..f50c49d 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/Log4jLogEvent.java
@@ -228,6 +228,7 @@ public class Log4jLogEvent implements LogEvent {
*
* @deprecated use {@link Log4jLogEvent.Builder} instead. This constructor will be removed in an upcoming release.
*/
+ @Deprecated
public Log4jLogEvent(final long timestamp) {
this(Strings.EMPTY, null, Strings.EMPTY, null, null, (Throwable) null, null, null, null, null, null,
timestamp, nanoClock.nanoTime());
@@ -243,6 +244,7 @@ public class Log4jLogEvent implements LogEvent {
* @param t A Throwable or null.
* @deprecated use {@link Log4jLogEvent.Builder} instead. This constructor will be removed in an upcoming release.
*/
+ @Deprecated
public Log4jLogEvent(final String loggerName, final Marker marker, final String loggerFQCN, final Level level,
final Message message, final Throwable t) {
this(loggerName, marker, loggerFQCN, level, message, null, t);
@@ -288,7 +290,8 @@ public class Log4jLogEvent implements LogEvent {
* @param timestampMillis The timestamp of the event.
* @deprecated use {@link Log4jLogEvent.Builder} instead. This constructor will be removed in an upcoming release.
*/
- public Log4jLogEvent(final String loggerName, final Marker marker, final String loggerFQCN, final Level level,
+ @Deprecated
+public Log4jLogEvent(final String loggerName, final Marker marker, final String loggerFQCN, final Level level,
final Message message, final Throwable t, final Map<String, String> mdc,
final ThreadContext.ContextStack ndc, final String threadName,
final StackTraceElement location, final long timestampMillis) {
@@ -313,6 +316,7 @@ public class Log4jLogEvent implements LogEvent {
* @return a new LogEvent
* @deprecated use {@link Log4jLogEvent.Builder} instead. This method will be removed in an upcoming release.
*/
+ @Deprecated
public static Log4jLogEvent createEvent(final String loggerName, final Marker marker, final String loggerFQCN,
final Level level, final Message message, final Throwable thrown,
final ThrowableProxy thrownProxy,