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/04/20 05:17:38 UTC

logging-log4j2 git commit: Reproduce LOG4J2-965.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 90bd10150 -> 0663a96a0


Reproduce LOG4J2-965.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/0663a96a
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/0663a96a
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/0663a96a

Branch: refs/heads/master
Commit: 0663a96a0f4467495c0a00e17a39fc05eb0830bd
Parents: 90bd101
Author: Gary Gregory <ga...@gmail.com>
Authored: Sun Apr 19 20:17:34 2015 -0700
Committer: Gary Gregory <ga...@gmail.com>
Committed: Sun Apr 19 20:17:34 2015 -0700

----------------------------------------------------------------------
 .../appender/JansiConsoleAppenderJira965.java   | 30 ++++++++++++++++++++
 log4j-core/src/test/resources/log4j-jira965.xml | 15 ++++++++++
 2 files changed, 45 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0663a96a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/JansiConsoleAppenderJira965.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/JansiConsoleAppenderJira965.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/JansiConsoleAppenderJira965.java
new file mode 100644
index 0000000..f27a963
--- /dev/null
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/JansiConsoleAppenderJira965.java
@@ -0,0 +1,30 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache license, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the license for the specific language governing permissions and
+ * limitations under the license.
+ */
+
+package org.apache.logging.log4j.core.appender;
+
+import org.slf4j.LoggerFactory;
+
+public class JansiConsoleAppenderJira965 {
+
+    public static void main(String[] args) {
+        System.out.println("Able to print on Windows");
+        LoggerFactory.getLogger(JansiConsoleAppenderJira965.class);
+        System.out.println("Unable to print on Windows");
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/0663a96a/log4j-core/src/test/resources/log4j-jira965.xml
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/resources/log4j-jira965.xml b/log4j-core/src/test/resources/log4j-jira965.xml
new file mode 100644
index 0000000..3035656
--- /dev/null
+++ b/log4j-core/src/test/resources/log4j-jira965.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="WARN">
+  <Appenders>
+    <File name="root" fileName="${sys:user.home}/logs/windowsbug.log">
+      <PatternLayout>
+        <Pattern>%d %p %c{1.} [%t] %m%n</Pattern>
+      </PatternLayout>
+    </File>
+  </Appenders>
+  <Loggers>
+    <Root level="info">
+      <AppenderRef ref="root" />
+    </Root>
+  </Loggers>
+</Configuration>
\ No newline at end of file