Package org.objectweb.util.monolog.api

Examples of org.objectweb.util.monolog.api.TopicalLogger.addTopic()


      l.setIntLevel(BasicLevel.INFO);

      // logger.org.foo.bar3.topic.0 fr.inria.sardes3
      // logger.org.foo.bar3.topic.1 fr.inrialpes.sardes3
      l = (TopicalLogger) lf.getLogger("org.foo.bar3");
      l.addTopic("fr.inria.sardes3");
      l.addTopic("fr.inrialpes.sardes3");

      // logger.org.foo.bar4.level ERROR
      // logger.org.foo.bar4.topic.0 fr.inria.sardes4
      // logger.org.foo.bar4.topic.1 fr.inrialpes.sardes4
View Full Code Here


      // logger.org.foo.bar3.topic.0 fr.inria.sardes3
      // logger.org.foo.bar3.topic.1 fr.inrialpes.sardes3
      l = (TopicalLogger) lf.getLogger("org.foo.bar3");
      l.addTopic("fr.inria.sardes3");
      l.addTopic("fr.inrialpes.sardes3");

      // logger.org.foo.bar4.level ERROR
      // logger.org.foo.bar4.topic.0 fr.inria.sardes4
      // logger.org.foo.bar4.topic.1 fr.inrialpes.sardes4
      l = (TopicalLogger) lf.getLogger("org.foo.bar4");
View Full Code Here

      // logger.org.foo.bar4.level ERROR
      // logger.org.foo.bar4.topic.0 fr.inria.sardes4
      // logger.org.foo.bar4.topic.1 fr.inrialpes.sardes4
      l = (TopicalLogger) lf.getLogger("org.foo.bar4");
      l.setIntLevel(BasicLevel.ERROR);
      l.addTopic("fr.inria.sardes4");
      l.addTopic("fr.inrialpes.sardes4");

      //logger.org.foo.bar5.handler.0 Handler_file
      l = (TopicalLogger) lf.getLogger("org.foo.bar5");
      l.addHandler( hf.getHandler("Handler_file"));
View Full Code Here

      // logger.org.foo.bar4.topic.0 fr.inria.sardes4
      // logger.org.foo.bar4.topic.1 fr.inrialpes.sardes4
      l = (TopicalLogger) lf.getLogger("org.foo.bar4");
      l.setIntLevel(BasicLevel.ERROR);
      l.addTopic("fr.inria.sardes4");
      l.addTopic("fr.inrialpes.sardes4");

      //logger.org.foo.bar5.handler.0 Handler_file
      l = (TopicalLogger) lf.getLogger("org.foo.bar5");
      l.addHandler( hf.getHandler("Handler_file"));
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 addTopicToLogger(String topic, String loggerName) {
        TopicalLogger l = (TopicalLogger) mf.getLogger(loggerName);
        try {
            l.addTopic(topic);
        } catch (Exception e) {
            return;
        }
    }
View Full Code Here

            while(st.hasMoreTokens()) {
                String topic = st.nextToken();
                if (debug) {
                    debug("add topic " + topic + " to the logger " + logger.getName());
                }
                logger.addTopic(topic);
            }
        } else { //old declaration
            temp = DottedStringTools.getBegin(temp); // remove the number
            last = DottedStringTools.getLast(temp); // attribute name
            temp = DottedStringTools.getBegin(temp); // logger name
View Full Code Here

                // Assign a topic to a logger
                String topic = prop.getProperty(key).trim();
                if (debug) {
                    debug("add topic " + topic + " to the logger " + logger.getName());
                }
                logger.addTopic(topic);
            } else {
                throw new Exception(
                        "Unknown definition" + key + " " + prop.getProperty(key));
            }
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.