package exercise.PO1_Logger.api.layout.xmlBindingLogModel;


import exercise.PO1_Logger.api.logger.ReportLevel;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "log")
@XmlAccessorType(XmlAccessType.FIELD)
public class Log {

    @XmlElement(name = "date")
    private String date;

    @XmlElement(name = "level")
    private ReportLevel reportLevel;

    @XmlElement(name = "message")
    private String message;

    public Log() {
    }

    public Log(String date, ReportLevel reportLevel, String message) {
        this.date = date;
        this.reportLevel = reportLevel;
        this.message = message;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public ReportLevel getReportLevel() {
        return reportLevel;
    }

    public void setReportLevel(ReportLevel reportLevel) {
        this.reportLevel = reportLevel;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
