1   /*
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2024, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v1.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
13   */
14  
15  package ch.qos.logback.classic.issue.github879;
16  
17  
18  import ch.qos.logback.classic.ClassicConstants;
19  import org.slf4j.Logger;
20  import org.slf4j.LoggerFactory;
21  
22  public class Main {
23  
24  
25      static {
26  
27          System.setProperty("outputPath", "logback-classic/target/test-output/issue879");
28          String configFilePath = "logback-classic/src/test/java/ch/qos/logback/classic/issue/github879/";
29          System.setProperty("logback.statusListenerClass", "stdout");
30          System.setProperty(ClassicConstants.CONFIG_FILE_PROPERTY, configFilePath+"logback-879.xml");
31      }
32  
33  
34      public static void main(String[] args) {
35          final Logger LOGGER = LoggerFactory.getLogger(Main.class);
36  
37          for (int i = 0; i < 20_000; i++) {
38              LOGGER.info("X".repeat(45));
39          }
40      }
41  }