public final class DBQueryStatisticsLog extends Object
log4j.logger.org.wso2.carbon.registry.core.statistics.query=DEBUG
.
This implementation, by default does not store information on duplicate accesses on a particular
table of a database, to optimize performance. If you wish to see the complete list of accesses,
set the carbon.registry.statistics.preserve.duplicate.table.accesses
system property
to true.
This implementation, by default does not log the list of queries executed on the database, to
optimize performance. If you wish to see the complete list of queries executed in chronological
order, set the carbon.registry.statistics.output.queries.executed
system property
to true.
We log statistics for all registry operations by default. If you want to log statistics for a
limited set of operations, you need to specify the names of the operations as a list of comma
separated values using the carbon.registry.statistics.operations
system property.
Modifier and Type | Method and Description |
---|---|
static void |
clearStatisticsRecord()
Method to clear the current statistics record.
|
static org.apache.commons.logging.Log |
getLog()
Method to obtain an instance of the logger that can be used to log database query statistics.
|
static StatisticsRecord |
getStatisticsRecord()
Method to retrieve a Statistics Record.
|
public static org.apache.commons.logging.Log getLog()
public static StatisticsRecord getStatisticsRecord()
public static void clearStatisticsRecord()
Copyright © 2016 WSO2 Inc. All Rights Reserved.