Skip to content

How to setup mintty session logging for multiple teminals? #1167

@CatalinSoare

Description

@CatalinSoare

Hello,

I believe the simplest way is to have logfiles with timestamps in their name

What I'm trying to achieve here is basically as the title says, I want to be able to log multiple parallel sessions, but I don't understand the syntax for log file naming.
It mentions "If FILE contains %d it will be substituted with the process ID. ". I've tried to setup a windows shortcut with this target:
C:\cygwin64\bin\mintty.exe -o Logging=yes -l C:\cygwin64\logs\%d.log -i /Cygwin-Terminal.ico -
but that only generates a file called "d.log".

I even tried to create a batch file that launches mintty and starts it with a timestamp generated by the batch script, but the %DATE%... vars are getting passed to mintty so that didn't help.

Can anybody please help with an example?

LE: I am running mintty v 3.6.1, that came installed with cygwin.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions