Android logcat viewer.
https://luna.liriliri.io/?path=/story/logcat
Add the following script and style to your page.
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-logcat/luna-logcat.css" />
<script src="//cdn.jsdelivr.net/npm/luna-logcat/luna-logcat.js"></script>
You can also get it on npm.
npm install luna-logcat --save
import 'luna-logcat/luna-logcat.css'
import LunaLogcat from 'luna-logcat'
const logcat = new LunaLogcat(container)
logcatp.append({
date: '2021-01-01 00:00:00',
package: 'com.example',
pid: 1234,
tid: 1234,
priority: 3,
tag: 'tag',
message: 'message',
})
- entries(IEntry[]): Log entries.
- filter(IFilter): Log filter.
- maxNum(number): Max entry number, zero means infinite.
- view('standard' | 'compact'): Log formatting.
- wrapLongLines(boolean): Wrap long lines.
Append entry.
Clear all entries.
Get selected text.
Check if there is any selection.
Scroll to end.
- package(string): Package name.
- priority(number): Entry priority.
- tag(string): Tag name.