public final class MeterFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static Meter |
getCurrentMeter()
Returns the most recently started Meter on the current thread.
|
static Meter |
getCurrentSubMeter(String suboperationName)
Creates a new Meter whose name is subordinated under the hierarchy last started meter onthe current thread.
|
static Meter |
getMeter(Class<?> clazz)
Returns a Meter with given category equal to the class name, which will also be the logger name.
|
static Meter |
getMeter(Class<?> clazz,
String operationName)
Returns a Meter with given category equal to the class name, which will also be the logger name.
|
static Meter |
getMeter(org.slf4j.Logger logger)
Returns a Meter with category equal to the logger name and as meter category.
|
static Meter |
getMeter(org.slf4j.Logger logger,
String operationName)
Returns a Meter with given category equal to the logger name.
|
static Meter |
getMeter(String category)
Returns a Meter with given category, which will also be also the logger name.
|
public static Meter getMeter(org.slf4j.Logger logger)
logger - The logger used to report messages.public static Meter getMeter(String category)
category - The Meter category and logger name.public static Meter getMeter(Class<?> clazz)
clazz - The class which name is used as category and logger name.public static Meter getMeter(Class<?> clazz, String operationName)
clazz - The class which name is used as category and logger name.operationName - Additional identification to distinguish operations reported on the same logger.public static Meter getMeter(org.slf4j.Logger logger, String operationName)
logger - The logger used to report messages and as meter category.operationName - Additional identification to distinguish operations reported on the same logger.public static Meter getCurrentMeter()
public static Meter getCurrentSubMeter(String suboperationName)
suboperationName - Additional identification appended to the subordinated meter name.Copyright © 2010–2025. All rights reserved.