1   /** 
2    * LOGBack: the reliable, fast and flexible logging library for Java.
3    *
4    * Copyright (C) 1999-2005, QOS.ch, LOGBack.com
5    *
6    * This library is free software, you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public License as
8    * published by the Free Software Foundation.
9    */
10  package ch.qos.logback.classic.control;
11  
12  import ch.qos.logback.classic.Level;
13  
14  public class SetLevel extends ScenarioAction {
15    final String loggerName;
16    final Level level;
17  
18    public SetLevel(Level level, String loggerName) {
19      this.level = level;
20      this.loggerName = loggerName;
21    }
22  
23    public Level getLevel() {
24      return level;
25    }
26  
27    public String getLoggerName() {
28      return loggerName;
29    }
30    public String toString() {
31      return "SetLevel("+level+", "+loggerName+")";
32    }
33  }