https://github.com/erspearson/xap-log
A command line message logger for xAP home automation using xap-framework
https://github.com/erspearson/xap-log
nodejs typescript xap-home-automation
Last synced: about 2 months ago
JSON representation
A command line message logger for xAP home automation using xap-framework
- Host: GitHub
- URL: https://github.com/erspearson/xap-log
- Owner: erspearson
- License: mit
- Created: 2019-02-23T10:31:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-03-22T15:35:04.000Z (about 4 years ago)
- Last Synced: 2025-03-13T07:40:26.197Z (about 1 year ago)
- Topics: nodejs, typescript, xap-home-automation
- Language: JavaScript
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xap-log
A command line message logger for xAP home automation using xap-framework
## Install and run
* Compiled code and dependencies can be installed from npmjs: ``[sudo] npm install [-g] xap-log``
* Run from the command line: ``xap-log []`` if installed globally
otherwise ``node ./lib/xap-log.js []`` or ``npm start [-- ]``
* Stops on receiving SIGINT, ctrl-C.
## Options
* --source \ - show only messages with a source address matching a regular expression
* --class \ - show only messages with a message class matching a regular expression
* --level <1,2> - verbosity: 1 (default) messages, 2 messages and heartbeats
* --dump - show the message content (by default only a summary line is shown)
* --heartbeat \ - heartbeat interval for the logger's own heartbeat (default 300)
## Dependencies
xap-log uses:
* xap-framework for all network communication and message manipulation.
The code is a useful example of simple use of xap-framework.
## Bugs
There is almost no command line option checking.
## Family
xap-log is part of a family of modules for xAP
