Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to obtain a simple use-case: redirect filtered data into file, unfiltered to the terminal?
- X-seq: zsh-users 23864
- From: Eric Cook <llua@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: How to obtain a simple use-case: redirect filtered data into file, unfiltered to the terminal?
- Date: Thu, 7 Feb 2019 09:27:53 -0500
- In-reply-to: <CAKc7PVBSJcVYT1WJDBx+63eazZdCbcjuUSQxz9Y91paJ=nGyeg@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBSJcVYT1WJDBx+63eazZdCbcjuUSQxz9Y91paJ=nGyeg@mail.gmail.com>
On 2/7/19 8:12 AM, Sebastian Gniazdowski wrote:
> Hello,
> I have a simple use-case that I would want to implement:
> 1. There is an application that outputs colorized logs.
> 2. I want the logs to go into a file (say `operation.log') filtered,
> i.e. without colors.
> 3. But at the same time still go to the terminal unfiltered.
> 4. I want the application to have a positive response from the
> iatty(1) function, i.e. that the application is thinking that the
> output is to the terminal (well, it really *is*, it's just that it.
> *also* goes to the file).
Implement logging in the application.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author