logmon implementation by ruby.