View Javadoc

1   /**
2    * LOGBack: the reliable, fast and flexible logging library for Java.
3    *
4    * Copyright (C) 1999-2006, QOS.ch
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.core.spi;
11  
12  import ch.qos.logback.core.Context;
13  import ch.qos.logback.core.status.Status;
14  
15  
16  public interface ContextAware {
17  
18    public void setContext(Context context);
19    public Context getContext();
20    
21    public void addStatus(Status status);
22    public void addInfo(String msg);
23    
24    public void addInfo(String msg, Throwable ex);
25    
26    public void addWarn(String msg);
27    
28    public void addWarn(String msg, Throwable ex);
29    
30    public void addError(String msg);
31    
32    public void addError(String msg, Throwable ex);  
33  
34  }