Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional log format (dmsg & logcat) #1204

Open
SylvainDe opened this issue Nov 5, 2023 · 1 comment
Open

Additional log format (dmsg & logcat) #1204

SylvainDe opened this issue Nov 5, 2023 · 1 comment
Labels
enhancement Feature Request

Comments

@SylvainDe
Copy link

SylvainDe commented Nov 5, 2023

Is your feature request related to a problem? Please describe.

It looks like the 2 (public) log formats that I use the most are not recognized by lnav:

Example:

[    0.011400] ACPI: Reserving SSDT table memory at [mem 0x9bbc7000-0x9bbc719a]
[    0.084325] percpu: Embedded 61 pages/cpu s212992 r8192 d28672 u262144
[    0.227420] ftrace: allocated 196 pages with 3 groups

Example:

12-31 00:00:01.979  1482  1482 I SELinux : SELinux: Loaded service_contexts from:
12-31 00:00:03.418  1611  1611 I apexd   : Found /system/apex/com.android.runtime.debug
12-31 00:00:04.190  1448  1448 D RefBase : RefBase: Explicit destruction, weak count = 0 (in 0xb5c2a144)
12-31 00:00:04.190  1448  1448 W RefBase : CallStack::getCurrentInternal not linked, returning null

(Note: other formats can be used such as the output as per https://developer.android.com/tools/logcat#outputFormat )

Describe the solution you'd like

I'd like to know if it is worth spending some time defining these properly (with https://docs.lnav.org/en/latest/formats.html#defining-a-new-format ) and submitting a PR for it.

In particular, may I suggest 2 formats for the same types of logs depending on the formatting used, for instance:

  • "dmesg" vs "dmesg --raw"
  • "logcat" vs "logcat -v long"

Also, in the case of "logcat", I may have extra lines such as:

--------- beginning of main
12-31 00:00:00.072  1481  1481 W auditd  : type=2000 audit(0.0:1): state=initialized audit_enabled=0 res=1

Do we have to handle them in a special way (so that they do not prevent the format to be recognized) ?

Thanks in advance

@SylvainDe SylvainDe added the enhancement Feature Request label Nov 5, 2023
@SylvainDe
Copy link
Author

Now, it looks like other tickets have been opened mentioning logcat:

and dmesg:

so maybe this is me not doing things correctly... To be investigated on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant