https://github.com/aeghost/netlogger
A minimalistic program that logs given datas or stdin to a local socket or the network
https://github.com/aeghost/netlogger
Last synced: about 1 year ago
JSON representation
A minimalistic program that logs given datas or stdin to a local socket or the network
- Host: GitHub
- URL: https://github.com/aeghost/netlogger
- Owner: aeghost
- License: mit
- Created: 2022-10-12T08:38:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-18T12:00:15.000Z (over 3 years ago)
- Last Synced: 2025-01-28T01:46:48.831Z (over 1 year ago)
- Language: Dart
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Purpose
Simple binary that takes strings and write them into a network socket
Typical usecase, Apache2 use this type of binary to log.
Then you can make a little server to parse and use Apache logs.
More efficiant than inotify or while loop on file.
# Objective
The objective was to quickly learn Dart and its dev environment.
# Makefile rules
## Build
- make build/netlogger.exe : build binary
- make rebuild : rebuild binary ignoring build dir content
- make all : build binary and run tests
- make : build binary and run tests, same as all
- make build : will only create "build" dir, conforming to Dart standards
## Tests
- make test/{test_name} : Run a specific test named {test_name} and save results in logs/{test_name}-{sha1}.log
- make tests : Run all tests and save results in logs/all-{sha1}.log
## Clean
- make clean : remove build dir
- make dist-clean : remove build dir and logs dir