(String type, String name)
| 590 | } |
| 591 | |
| 592 | public static Event newEvent(String type, String name) { |
| 593 | if (isEnabled()) { |
| 594 | try { |
| 595 | return Cat.getProducer().newEvent(type, name); |
| 596 | } catch (Exception e) { |
| 597 | errorHandler(e); |
| 598 | return NullMessage.EVENT; |
| 599 | } |
| 600 | } else { |
| 601 | return NullMessage.EVENT; |
| 602 | } |
| 603 | } |
| 604 | |
| 605 | public static Trace newTrace(String type, String name) { |
| 606 | if (isEnabled()) { |
no test coverage detected