All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.core.logger.BufferedLogger Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.core.logger;

import com.softicar.platform.common.core.logging.LogLevel;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class BufferedLogger extends AbstractLogger {

	private final List lines;

	public BufferedLogger() {

		this.lines = new ArrayList<>();
	}

	public void clear() {

		lines.clear();
	}

	public Collection getLines() {

		return lines;
	}

	@Override
	public void doLog(LogLevel logLevel, String text) {

		lines.add(new BufferedLoggerLine(logLevel, text));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy