Interface LogPanel
@ProviderType
public interface LogPanel
Interface for the Felix Web Console plugin that displays the
current active log bundle configuration
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe app rootstatic final StringRequest param name for appender namestatic final StringRequest param capturing the regular expression to searchstatic final StringRequest param name to control number of lines to include in the logstatic final StringLet the path end with extension.static final StringThe base location for UI resources -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateLoggerConfig(LoggerConfig config) Creates a logger configurationvoiddeleteLoggerConfig(String pid) Deletes a logger configurationvoidrender(PrintWriter pw, String consoleAppRoot) Renders the logging configuration details to the supplied print writervoidtail(PrintWriter pw, String appenderName, TailerOptions options) Tails the content of the given appender to the supplied print writer
-
Field Details
-
PARAM_TAIL_NUM_OF_LINES
Request param name to control number of lines to include in the log- See Also:
-
PARAM_APPENDER_NAME
Request param name for appender name- See Also:
-
PARAM_TAIL_GREP
Request param capturing the regular expression to search- See Also:
-
PATH_TAILER
Let the path end with extension. In that case WebConsole logic would by pass this request's response completely- See Also:
-
APP_ROOT
The app root- See Also:
-
RES_LOC
The base location for UI resources- See Also:
-
-
Method Details
-
tail
Tails the content of the given appender to the supplied print writer- Parameters:
pw- the print writer to render toappenderName- the name of the appender to tailoptions- the options for what content to include in the output- Throws:
IOException- if any failure rendering the tailed log file
-
render
Renders the logging configuration details to the supplied print writer- Parameters:
pw- the print writer to render toconsoleAppRoot- the app root- Throws:
IOException- if any failure rendering the logging configuration
-
deleteLoggerConfig
Deletes a logger configuration- Parameters:
pid- the pid of the configuration to delete
-
createLoggerConfig
Creates a logger configuration- Parameters:
config- the configuration details- Throws:
IOException- if any failure applying the logger configuration
-