@Component @UserDocumentation(title="Commands for Accessing Logs", description="This section provides commands for fetching logs under LENS_LOG_DIR.") public class LensLogResourceCommands extends BaseLensCommand
DATE_FMT, DATE_PARSER
Constructor and Description |
---|
LensLogResourceCommands() |
Modifier and Type | Method and Description |
---|---|
String |
getLogs(String logFile,
String location) |
afterReturningInvocation, afterThrowingInvocation, beforeInvocation, formatDate, formatJson, getClient, getClientWrapper, getValidPath, removePrefixBeforeURI, setClient
@CliCommand(value="show logs", help="show logs for the given handle. Handle can either be a query handle or request id. You can optionally provide a location to save the logs as ") public String getLogs(@CliOption(key={"","log_handle"},mandatory=true,help=" ") String logFile, @CliOption(key="save_location",mandatory=false,help=" ") String location)
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.