Giter Club home page Giter Club logo

lolz's Introduction

lolz Build Status

Oh hai! I'm in ur logz, findin ur bugz!

Installation

Requirements

Building

  • mkdir build
  • cd build
  • cmake ..
  • make

Usage

Configuration

Create a lolz.yml file, by default $HOME/.lolz.yml will be used. e.g.:

database: /home/me/stuff/lolz.db

directories:
    - path: home/me/projects
      include:
      - *.log

Ceiling Cat - The Daemon

Starting lolzcat:

lolzcat --config=/path/to/config

lolzfindr

./lolzfindr ERROR

Notificaations

Send notifications every time you get an event that matches a pattern:

Linux
lolzfindr --tail --exec='notify-send "{file}" "{line}"' ERROR
MacOS

Use terminal-notifier:

lolzfindr --tail --exec='terminal-notifier -message "{line}" -title "Oh noes!" -open "file://{file}"' ERROR

License

lolz is available under the GPL3 license.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

lolz's People

Contributors

drflibble avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

joye1503

lolz's Issues

Add log retention

Is your feature request related to a problem? Please describe.
The lolz database can end up being very large with continuous use.

Describe the solution you'd like
Add a retention period where log entries before this period are deleted.

Additional context

  • Ignore files with timestamps before this retention period

  • Sqlite VACUUMing

lolzfindr keeps creating zombie process

Like dis:

tom@tom-VirtualBox /deploy/tomcat-workers/logs$ ps -ef | grep lol
tom       8387 12514  0 15:34 pts/1    00:00:00 [lolzfindr] <defunct>
tom       8778 12514  0 15:38 pts/1    00:00:00 [lolzfindr] <defunct>
tom       9185 12514  0 15:42 pts/1    00:00:00 [lolzfindr] <defunct>
tom       9610 12514  0 15:46 pts/1    00:00:00 [lolzfindr] <defunct>
tom      10270 12514  0 16:01 pts/1    00:00:00 [lolzfindr] <defunct>
tom      10862 12514  0 16:13 pts/1    00:00:00 [lolzfindr] <defunct>
tom      11906 12514  0 16:20 pts/1    00:00:00 [lolzfindr] <defunct>
tom      12513     1  0 11:56 pts/1    00:00:42 lolzcat
tom      12514     1  7 11:56 pts/1    00:24:05 lolzfindr --tail --exec=notify-send "{file}:{line}" ERROR
tom      14214 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14238 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14299 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14304 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14313 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14318 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14323 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14329 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14349 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14350 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14371 12514  0 12:09 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14376 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14377 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14386 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14392 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14398 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14403 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14409 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14410 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
tom      14419 12514  0 12:10 pts/1    00:00:00 [lolzfindr] <defunct>
...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.