001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.classic.corpus;
015
016import ch.qos.logback.classic.Level;
017import ch.qos.logback.classic.spi.IThrowableProxy;
018
019/**
020 * Captures the data contained within a log statement, that is the data that the
021 * developer puts in the source code when he writes:
022 * 
023 * <p>logger.debug("hello world");
024 * 
025 * @author Ceki G&uuml;lc&uuml; 
026 */
027public class LogStatement {
028
029    final String loggerName;
030    final MessageArgumentTuple mat;
031    final Level level;
032    final IThrowableProxy throwableProxy;
033
034    public LogStatement(String loggerName, Level level, MessageArgumentTuple mat, IThrowableProxy tp) {
035        this.loggerName = loggerName;
036        this.level = level;
037        this.mat = mat;
038        this.throwableProxy = tp;
039    }
040
041    public String getLoggerName() {
042        return loggerName;
043    }
044}