the module wants me to choose the format and gives me a list of names, but... what are they? #63
Replies: 4 comments
-
|
Standard formats are defined in three variables `logview-std-...` near the
top of `logview.el`. User-custom additions should go into the corresponding
three variables named `logview-additional-...` in the same format. If you
have a nonstandard timestamp (usually they include full time, not just
seconds like in your case), you should add an entry to
`logview-additional-timestamp-formats`.
…On Sat, 22 Nov 2025 at 01:12, Dino Chiesa ***@***.***> wrote:
Is there a definition of the formats of "Log4j" and "PHP", and all the
rest? Or a set of samples showing what these names actually mean?
Logview wants me to choose a format by name, but I don't know what the
names mean. And I don't see examples of those formats in the documentation.
I guess if I am a PHP log expert I would know what PHP logs look like. But
I'm not. Nor do I know any of the other formats.
I know the format I'm looking at in the log file that interests me right
now. But I don't know if that format has a name.
How do I connect the dots here?
It asks me for a timestamp format and I'm seeing a list of choices, but
mine isn't in there. My timestamp format is epoch seconds and microseconds.
ssssssssss.SSSSSS . But I couldn't specify that.
??
am I holding it wrong?
—
Reply to this email directly, view it on GitHub
<#63>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYPBKQX7DIGCHP4N2RJIT356TATAVCNFSM6AAAAACM3QZXGWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZZGE3DKOJZGM>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
The timestamp format isn't quite the whole answer here. Is there a sample for defining a NEW submode? I read the doc and comments in the code, but couldn't figure it out. If it's a regex I need to supply for each field (level, message, timestamp, source, name, etc), I can do that. But how? Maybe I'll ask an AI coding assistant to tell me. |
Beta Was this translation helpful? Give feedback.
-
|
From documentation of `logview-additional-submodes`:
The only mandatory and the most important field that defines
how log entries are built from pieces. There are currently
four such supported pieces: \"TIMESTAMP\", \"LEVEL\", \"NAME\"
and \"THREAD\". All four are optional. For example, Log4j,
by default formats entries according to this pattern:
TIMESTAMP [THREAD] LEVEL NAME -
Definition of `logview-std-submodes`:
'(("SLF4J" . ((format . "TIMESTAMP [THREAD] LEVEL NAME -")
(levels . "SLF4J")
(aliases . ("Log4j" "Log4j2" "Logback"))))
...
…On Tue, 25 Nov 2025 at 00:26, Dino Chiesa ***@***.***> wrote:
The timestamp format isn't quite the whole answer here.
Is there a sample for defining a NEW submode? I read the doc and comments
in the code, but couldn't figure it out. If it's a regex I need to supply
for each field (level, message, timestamp, source, name, etc), I can do
that. But how?
Maybe I'll ask an AI coding assistant to tell me.
—
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYPBPJZQLSRJVCBVKKEVD36OHYXAVCNFSM6AAAAACM3QZXGWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKMBWG42DKMA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
Thanks I guess the idea in logview is that the various fields are well ordered. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a definition of the formats of "Log4j" and "PHP" and "Monolog" and "Log4j2", and all the rest? Or a set of samples showing what these names actually mean?
Logview wants me to choose a format by name, but I don't know what the names mean. And I don't see examples of those formats in the documentation. I guess if I am a PHP log expert I would know what PHP logs look like. But I'm not. Nor do I know any of the other formats.
I know the format I'm looking at in the log file that interests me right now. But I don't know if that format has a name. EDIT - I believe it is called NDJSON - each log entry is a JSON hash.
How do I connect the dots here?
It asks me for a timestamp format and I'm seeing a list of choices, but mine isn't in there. My timestamp format is epoch seconds and microseconds. ssssssssss.SSSSSS . But I couldn't specify that.
??
am I holding it wrong?
Is there a sample for defining a NEW submode? My own? I read the doc and comments but couldn't figure it out. If it's a regex I need to supply for each field (level, message, timestamp, source, name, etc), I can do that. But how?
Beta Was this translation helpful? Give feedback.
All reactions