You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Matthew Dinep (JIRA)" <ji...@apache.org> on 2017/10/24 00:21:00 UTC

[jira] [Commented] (ACCUMULO-1134) Let user change date format in LogServet.

    [ https://issues.apache.org/jira/browse/ACCUMULO-1134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16216118#comment-16216118 ] 

Matthew Dinep commented on ACCUMULO-1134:
-----------------------------------------

It looks like this has already been resolved. As of the 1.7 branch, the code is now:

final String dateFormatStr = conf.get(Property.MONITOR_LOG_DATE_FORMAT);
    SimpleDateFormat fmt;
    try {
      fmt = new SimpleDateFormat(dateFormatStr);
    } catch (IllegalArgumentException e) {
      log.warn("Could not instantiate SimpleDateFormat with format string of '" + dateFormatStr + "', using default format string");
      fmt = new SimpleDateFormat(Property.MONITOR_LOG_DATE_FORMAT.getDefaultValue());
    }

> Let user change date format in LogServet.
> -----------------------------------------
>
>                 Key: ACCUMULO-1134
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1134
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: monitor
>    Affects Versions: 1.4.1, 1.4.2, 1.5.0
>            Reporter: David Medinets
>            Priority: Minor
>              Labels: newbie
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)