com.xiaomi.infra.galaxy.lcs.log.log4j.TestLCSLogger Maven / Gradle / Ivy
/**
* Copyright 2016, Xiaomi.
* All rights reserved.
* Author: [email protected]
*/
package com.xiaomi.infra.galaxy.lcs.log.log4j;
public class TestLCSLogger {
public static void main(String[] args) throws Exception {
LCSLogger talosLogger = new LCSLogger();
long messageNumber = 0;
while (true) {
talosLogger.write(("This is a test message for talos data flow, there is " +
"nothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow, " +
"there inothing is it.This is a test message for talos data flow").getBytes());
messageNumber ++;
if (messageNumber % 1000 == 0) {
System.out.println("MessageNumber: " + messageNumber);
try {
Thread.sleep(200);
} catch (InterruptedException e) {
}
}
if (messageNumber == 30000000) {
break;
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy