v2 migration and release policy
简体中文 | English README | 中文 README
v2 provides a standalone structured frontend logger under the MIT license.
Branches and channels
The default branch maintains v2 beta. Stable v1 is preserved in the v1 branch. Install logline@beta for v2; ordinary installs continue using the newest published v1 subversion.
Migrating from v1
v2 is a rewrite of the public Logline API. Replace v1 constructor and storage-protocol usage with named logging functions and plugins; v2 does not provide WebSQL or localStorage protocols.
- Import
TRACE,DEBUG,LOG,WARN, andERRORfromlogline. - Configure logging with
configureLogline; read or reset configuration withgetLoglineConfigandresetLoglineConfig. - Use
loglineVitePluginfromlogline/vite-pluginfor source prefixes and build-level filtering. - For a CI build that strips all recognized Logline calls, including
ERROR, setVITE_LOGLINE_ENABLE=false. UseVITE_LOG_LEVEL=TRACEto retain every level in a local build. See Vite integration. - Use
createLoglineAutoImportfromlogline/auto-importfor optional auto-import integration. - Configure persistence with
createIndexedDBLoggingPluginfromlogline/plugin/indexeddb. Existing databases are not imported automatically.
See the README for complete examples and the IndexedDB reference for persistence options.
Release policy
Changesets prepares a reviewed version PR. Only its verified merge can publish with beta, keeping latest on the newest stable v1. See release flow.