final Long fromTime = now() - (24 * 60 * 60 * 1000);
final Long toTime = now();
final Set<String> modules = LogModuleNames.ALL_NAMES; // all
final List<Attribute> attrs = null;
final LogQueryResult result = logging.queryServerLog(
filename,
startRecord,
searchForward,
requestedCount,
fromTime,
toTime,
Level.WARNING.toString(),
modules,
attrs );
final String[] fieldNames = result.getFieldNames();
for( final LogQueryEntry entry : result.getEntries() )
{
final String messageID = entry.getMessageID();
final String[] causes = logging.getDiagnosticCauses( messageID );