Package org.objectweb.util.monolog.api

Examples of org.objectweb.util.monolog.api.TopicalLogger


        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        l.setAdditivity(a);
    }

  public void setLoggerLevel(int level, String loggerName) throws RemoteException {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
      l.setIntLevel(level);
  }
View Full Code Here


        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
      l.setIntLevel(level);
  }

  public void setLoggerLevel(String levelName, String loggerName) throws RemoteException {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        Level level = mf.getLevel(levelName);
        if (level != null) {
            l.setLevel(level);
        }
  }
View Full Code Here

        }
  }

  public void addTopicToLogger(String topic, String loggerName)
            throws RemoteException {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.addTopic(topic);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        }
    }

    public void removeTopicFromLogger(String topic, String loggerName)
            throws RemoteException {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.removeTopic(topic);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

             {
        Handler h = mf.getHandler(handlername);
        if (h == null) {
            return;
        }
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.addHandler(h);
        } catch (Exception e) {
            return;
        }
    }
View Full Code Here

             {
        Handler h = mf.getHandler(handlerName);
        if (h == null) {
            return;
        }
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.removeHandler(h);
        } catch (Exception e) {
            return;
        }
    }
View Full Code Here

            return;
        }
    }

     public void removeAllHandlersFromLogger(String loggerName)  {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.removeAllHandlers();
        } catch (Exception e) {
            return;
        }
    }
View Full Code Here

            return;
        }
    }

    public void setAdditivity(boolean a, String loggerName)  {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        l.setAdditivity(a);
    }
View Full Code Here

   * It assigns the level to a logger
   * @param level is the level to assign the logger
   * @param loggerName is the name of logger which the level must be set.
   */
  public void setLoggerLevel(int level, String loggerName) {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
      l.setIntLevel(level);
  }
View Full Code Here

   * It assigns the level to a logger
   * @param level is the level to assign the logger
   * @param loggerName is the name of logger which the level must be set.
   */
  public void setLoggerLevel(String levelName, String loggerName) {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        Level level = mf.getLevel(levelName);
        if (level != null) {
            l.setLevel(level);
        }
  }
View Full Code Here

TOP

Related Classes of org.objectweb.util.monolog.api.TopicalLogger

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.