Giter Site home page Giter Site logo

tee2's Introduction

tee2

Under development!!! and in WIP stage. please do not use yet

An alternative to the populate linux tee program.

The biggest difference is log rotation. The gnu tee command will happily fill your disks, and this is normally not wanted.

Description

This application reads from standard input and writes to a file, the same data is written to standard output. When the file reaches a certain limit it is truncated or rotated.

File rotation will happen by default as:

e.g command | tee2 myfile.log

  1. myfile.log is renamed to myfile_<iso_timestamp>.log
  2. a new file is created as myfile.log
  3. if the log-file-count is 3 when we have myfile_{i}.log, myfile_{i=1}.log, myfile_{i+2}.log, myfile_{i}.log is deleted

Objectives

  • Log rotation
  • Log truncation
  • Reasonably performant.

Non Goals

  • Fully compatible with tee. This application does not strive to be fully compatible with tee. It would be nice, but is not a goal.

tee2's People

Contributors

gerritjvv avatar

Watchers

 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.