Simple Clipboard Logger and Viewer

by Kyōsuke Tokoro

Version 5 (April 17, 2023)

Download (52 downloads)

I designed this as a logger that could stack hundreds of clipboard messages. And also, it's very convenient to work while referring log. If you log anything you want to see beforehand, the “👁 View log” flow works like a temporary screenshot. In contrast to screenshot images, you can also copy a selected text of your log, and paste it into other apps.

With the “share” logger flow, usually by a “Share” button/menu on any apps, then choose “Automate flow,” and “📋 Simple Clipboard Logger.” Your selected text will be appended to the log.

The conventional logger flow for Android 9 or earlier, is easier. The block #2 waits and gets a clipboard message from your “cut” or “copy” operation on another apps. And block #3 adds an incoming message to the log file, and returns to block #2 to wait for a new message.

Known problem:
* Each entry can be up to 2403 characters length. It seems that the specification of “Log append” (Blocks #3~9) is like that. Excess characters are truncated.

changelog:
Mon, 17 Apr 2023 21:03 +0900
* Limit history displayed to 65535 characters or 1535 entries to avoid AUTOMATE instability. (In attempting to display more entries, the dialog block #11 make AUTOMATE unstable. It looks like AUTOMATE is looping retries because the Android System WebView doesn't pass the error when the it goes down).
* Removed two hidden flows to tests.

Fri, 07 Apr 2023 20:44 +0900
* Specification change: Wrap long lines.
* Specification change: The search text input box size is now variable.
* New supplemental flow named “🗜 Shrink the log" has been added. Try this one to shrink the log file by removing irrelevances as the clipboard. This flow also remove duplicated entries.

Sun, 02 Apr 2023 03:21 +0900
* Renamed slightly
* Two kinds of dialog boxes in the “👁 View log and 🔍 regex search” flow have been merged into one block (into the block #11)
* Added a “share” interface flow for Android 10 or later. It also works on earlier devices
* Removed blocks to start the conventional logger from the “📋 Quick Setting Tile”
* Bug fix: Logged multiline error messages caused the viewer to misunderstand the log data. While fixing this, sed scripts (were as a log parser in a shell command block) have been replaced with the file read block #12, and the replaceAll function calls and the split function call in the block #13. As it's second order effect, “🔍 regex search” syntax is now in Java style, was ERE
* Bug fix: Because parallel launches were not allowed for the “👁 View log and 🔍 regex search” flow, sometimes 📋 Quick Setting tile was removed unexpectedly. The flow beginning block #10 allow parallel launches now, and the flow start block has been replaced a fork block
* Bug fix: The parser misunderstood a line separator given by a log append block as a part of a clipboard message. Fixed the log parser at the block #13

Tue, 28 Mar 2023 21:08 +0900
* Initial release for Android 9 or earlier