Variable: logview-additional-timestamp-formats
logview-additional-timestamp-formats is a customizable variable
defined in logview.el.
Value
nil
Documentation
Association list of additional timestamp formats.
A few common formats are already defined by the mode in variable
logview-std-timestamp-formats, but the ones you add here always
take precedence.
Each format has a name, by which it can be referred from submode definition. A format is defined by Java-like pattern. If the pattern contains text strings, e.g. month names, you can specify the locale to use (defaults to English).
See datetime library for the help about patterns, or read
https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
A more complicated and mostly obsolete way to specify format is
by using regular expression timestamp must match. It is strongly
recommended to make the expression as strict as possible to avoid
false positives. For example, if you entered something like
"\\w+" as an expression, this would often lead to Logview mode
autoselecting wrong submode and thus parsing log files
incorrectly. Regular expression is ignored if Java pattern is
also specified.
Timestamp format can have any number of optional aliases, which work just as the name.
Source Code
;; Defined in /nix/store/3zkn9hgpv447zb8nrg55d9x2ynmmrk40-emacs-packages-deps/share/emacs/site-lisp/elpa/logview-20260218.2013/logview.el
(defcustom logview-additional-timestamp-formats nil
"Association list of additional timestamp formats.
A few common formats are already defined by the mode in variable
`logview-std-timestamp-formats', but the ones you add here always
take precedence.
Each format has a name, by which it can be referred from submode
definition. A format is defined by Java-like pattern. If the
pattern contains text strings, e.g. month names, you can specify
the locale to use (defaults to English).
See `datetime' library for the help about patterns, or read
https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
A more complicated and mostly obsolete way to specify format is
by using regular expression timestamp must match. It is strongly
recommended to make the expression as strict as possible to avoid
false positives. For example, if you entered something like
\"\\w+\" as an expression, this would often lead to Logview mode
autoselecting wrong submode and thus parsing log files
incorrectly. Regular expression is ignored if Java pattern is
also specified.
Timestamp format can have any number of optional aliases, which
work just as the name."
:type '(repeat (cons (string :tag "Name")
(list :tag "Definition"
(set :inline t
(cons :tag "" (const :tag "Java pattern:" java-pattern) string)
(cons :tag "" (const :tag "Locale:" locale) symbol)
(cons :tag "" (const :tag "Datetime options:" datetime-options) plist)
(cons :tag "" (const :tag "Regular expression:" regexp) regexp)
(cons :tag "" (const :tag "Aliases:" aliases) (repeat string))))))
:set #'logview--set-submode-affecting-variable)