Package com.volantis.synergetics.reporting

Examples of com.volantis.synergetics.reporting.Log4jReportHandler


    public void testFormat() throws Exception {

        Map m = new HashMap();
        m.put(Log4jReportHandler.MESSAGE_FORMAT_KEY,
              "First subst {A} for B then {B} for C and put the message {:MESSAGE} here event {:EVENT} and date {:TIMESTAMP}");
        Log4jReportHandler h = new Log4jReportHandler(m, getClass().getName());

        Map metrics = new HashMap();
        metrics.put("A", "B");
        metrics.put("B", "C");
        metrics.put(":MESSAGE", "This message");
        metrics.put(":EVENT", Event.STOP.toString());
        metrics.put(":STATUS", Status.SUCCESS);
        metrics.put(":TIMESTAMP", new Date());
        h.report(metrics);
    }
View Full Code Here

TOP

Related Classes of com.volantis.synergetics.reporting.Log4jReportHandler

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.