Giter Site home page Giter Site logo

tailr's Introduction

Tailr

Build Status

Quickly tail local and remote files

Installation

npm install -g tailr

to add zsh completions:

tailr --completions >> ~/.zshrc

NOTE: If you're using the completions and you get a warning about insecure directories it's because the owner of the directory ".../node/.../lib/node_modules/tailr/completions" should be either the root user or the current user.

Configuration

Create a file named '.tailr.coffee' in your home directory:

module.exports =
  logs:
    my_remote_log:
      server: 'myserver'
      username: 'myuser'
      port: 1234
      filename: '/path/to/file/on/remote/server.log'
    my_local_log:
      filename: '/path/to/local/file'

Usage

# show the names of the logs specified in ~/.tailr.coffee
tailr --list

# tail a specific log:
tailr my_remote_log

# tail and highlight specified expressions:
tailr my_remote_log expr1
tailr my_remote_log expr1=red
tailr my_remote_log expr1=red,bgWhite
tailr my_remote_log expr1=underline
  # you can use "\_" instead of underline:
tailr my_remote_log expr1=_

Changelog

0.2.0 (2013-09-10)

  • added support for tailing multiple servers at once

0.1.5 (2013-02-26)

  • remove the 0x0e (ascii 14, shift-out) character before console.log (it messes up the terminal).

0.1.4 (2013-02-04)

  • got rid of the "tail" command (you can now use "tailr {log}")
  • "tailr completions" is now "tailr --completions"
  • "tailr list" is now "tailr --list"

0.1.3 (2013-02-04)

  • Highlighting bugfixes
  • Improved highlighter: you can now define foreground and background color:
  tailr tail mylog expr1=red,bgWhite,underline
  tailr tail mylog expr1=red,bgWhite,_
  • Added partial sudo support (by Avia Aharon)

0.1.2 (2013-02-04)

  • Added highlighting

0.1.1 (2013-02-04)

  • Added zsh completions

tailr's People

Contributors

elentok avatar n0nick avatar

Watchers

 avatar  avatar  avatar

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.