crystal-logreader alternatives and similar shards
Based on the "Logging and monitoring" category.
Alternatively, view crystal-logreader alternatives based on common mentions on social networks and blogs.
instana9.0 0.0 crystal-logreader VS instana🔮 Crystal Distributed Tracing & Metrics Sensor for Instana
crafana4.9 0.0 crystal-logreader VS crafanaCrystal library to help autogenerate Grafana dashboards
katip4.9 0.0 crystal-logreader VS katipKatip is JSONBase Logger for Crystal
syslog.cr3.9 0.0 crystal-logreader VS syslog.crSyslog client implementation for Crystal
crylog3.7 0.6 crystal-logreader VS crylogFlexible logging framework based on Monolog
gelf-crystalGELF UDP logger
fiber_metrics.crRuntime and memory allocation metrics
fluent-logger-crystalA Fluentd client for Crystal.
Loggerlogging utility (Crystal stdlib)
crometheusA Prometheus client library
Loglogging utility (Crystal stdlib)
Access the most powerful time series database as a service
Do you think we are missing an alternative of crystal-logreader or a related project?
Reading lines in the text file which is growing and may be rotated, such as unix system log file.
- When the current file reaches EOF, this will wait new line added to the file. (like
- Even when the current file is rotated, this will trace new file and continue reading lines.
Add this to your application's
dependencies: logreader: github: arcage/crystal-logreader
require "logreader" # create LogReader object log = LogReader.new("/var/log/maillog") # reads single line from the file # waits new line, when the file reaches EOF puts log.read_line # iterates each line in the file log.each do |line| puts line end
LogReader has only two public instance method
#each will not finish in normal operation. if you want to stop it, you have to do it forcibly by using
kill command etc.
When reading no data for reasons such as EOF,
LogReader try to read more data every second.
For every consecutive 5 results that no data read,
LogReader checks whether or not the inode number associated with the file name was changed.
If it had been changed,
LogReader close current file and re-open the file.
- arcage ʕ·ᴥ·ʔAKJ - creator, maintainer