src/main/java/org/apache/hadoop/hdfs/server/namenode/analytics/web/NamenodeAnalyticsMethods.java
@GET
  @Path("/log")
  @Produces({MediaType.TEXT_PLAIN})
  public Response log() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      Integer charsLimit = Integer.parseInt(request.getParameter("limit"));
      nnLoader.dumpLog(charsLimit, response);
      return Response.ok().build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
/**
   * LOG endpoint is an admin-level endpoint meant to dump the last "limit" bytes of the log file.
   */
LOG endpoint is an admin-level endpoint meant to dump the last "limit" bytes of the log file.
LOG endpoint is an admin - level endpoint meant to dump the last " limit " bytes of the log file .
@GET
  @Path("/log")
  @Produces({MediaType.TEXT_PLAIN})
  public Response log() {
    final NameNodeLoader nnLoader = (NameNodeLoader) context.getAttribute(NNA_NN_LOADER);
    try {
      before();
      Integer charsLimit = Integer.parseInt(request.getParameter("limit"));
      nnLoader.dumpLog(charsLimit, response);
      return Response.ok().build();
    } catch (Exception ex) {
      return handleException(ex);
    } finally {
      after();
    }
  }
@ GET @ Path ( "/log" ) @ Produces ( { MediaType . TEXT_PLAIN } ) public Response log ( ) { final NameNodeLoader nnLoader = ( NameNodeLoader ) context . getAttribute ( NNA_NN_LOADER ) ; try { before ( ) ; Integer charsLimit = Integer . parseInt ( request . getParameter ( "limit" ) ) ; nnLoader . dumpLog ( charsLimit , response ) ; return Response . ok ( ) . build ( ) ; } catch ( Exception ex ) { return handleException ( ex ) ; } finally { after ( ) ; } }
LOG endpoint is an admin-level endpoint meant to dump the last "limit" bytes of the log file.
LOG endpoint is an admin - level endpoint meant to dump the last " limit " bytes of the log file .