0.6.3 • Published 6 months ago
luna-logcat v0.6.3
Luna Logcat
Android logcat viewer.
Demo
https://luna.liriliri.io/?path=/story/logcat
Install
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'
Usage
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',
})
Configuration
- 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.
Api
append(entry: IEntry): void
Append entry.
clear(): void
Clear all entries.
getSelection(): string
Get selected text.
hasSelection(): boolean
Check if there is any selection.
scrollToEnd(): void
Scroll to end.
Types
IFilter
- package(string): Package name.
- priority(number): Entry priority.
- tag(string): Tag name.
0.6.3
6 months ago
0.6.2
6 months ago
0.5.0
7 months ago
0.6.1
6 months ago
0.6.0
6 months ago
0.5.1
7 months ago
0.4.2
9 months ago
0.3.0
10 months ago
0.4.1
10 months ago
0.3.2
10 months ago
0.4.0
10 months ago
0.3.1
10 months ago
0.3.4
10 months ago
0.3.3
10 months ago
0.2.2
10 months ago
0.2.1
10 months ago
0.2.0
10 months ago
0.1.1
10 months ago
0.1.0
10 months ago