SysLog icon indicating copy to clipboard operation
SysLog copied to clipboard

Automatically Take log

Open zskdan opened this issue 12 years ago • 5 comments

There is a way to automatically take logs and save them on sd-card ? I think it's a good feature to add.

zskdan avatar Sep 30 '13 12:09 zskdan

Something like scheduling it to pull logs next boot? Or something else?

Tortel avatar Oct 06 '13 02:10 Tortel

I am looking for this feature as well. I am trying to automate the collection of logs that would help kernel developers for my wifes phone. Her phone, HTC M7 GSM, will randomly reboot, and I am not able to collect the logs from reach reboot. If syslog could be made to automatically take each set of logs, compress and timestamp them, then do something. The something could be automatically save to dropbox, google drive, etc. or attach and send an email. This would be fantastic.

davidcastellani avatar Apr 22 '15 16:04 davidcastellani

Thanks

8804645769 avatar Sep 10 '17 12:09 8804645769

Overall I'm interested in obtaining MSL 6-digit code that I have no clue

sfirebenny avatar Dec 11 '21 07:12 sfirebenny

https://github.com/Tortel/SysLog/issues/1#issuecomment-25761236

@Tortel, Fairphone has informed me that logcat keeps logs for approximately 4 hours on their devices, whereas https://stackoverflow.com/revisions/12243831/1 explains that it might be even shorter on AOSP. Consequently, I see use for this feature in automatically saving a log to an internal non-volatile storage device every time it would otherwise be discarded by the OS.

  1. adb logcat -g
    
  2. root@sayw4i:/home/RokeJulianLockhart# adb logcat -g
    main: ring buffer is 256 KiB (248 KiB consumed, 1 MiB readable), max entry is 5120 B, max payload is 4068 B
    system: ring buffer is 256 KiB (250 KiB consumed, 1 MiB readable), max entry is 5120 B, max payload is 4068 B
    crash: ring buffer is 256 KiB (64 KiB consumed, 38 KiB readable), max entry is 5120 B, max payload is 4068 B
    kernel: ring buffer is 256 KiB (0 B consumed, 0 B readable), max entry is 5120 B, max payload is 4068 B
    root@sayw4i:/home/RokeJulianLockhart#
    

RokeJulianLockhart avatar Aug 28 '24 11:08 RokeJulianLockhart