xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 9 years ago

Closed 9 years ago

Last modified 4 months ago

#131 closed enhancement (fixed)

Log date and time of connection

Reported by: ahuillet Owned by: Antoine Martin
Priority: minor Milestone: 0.3
Component: server Version: 0.1.0
Keywords: Cc:

Description

Xpra doesn't log *when* a connection happens nor when it closes. Adding timestamps would be great.

Change History (4)

comment:1 Changed 9 years ago by Antoine Martin

Status: newaccepted

As per logging-cookbook, it should be a simple matter of adding a formatter to all logging:

formatter = logging.Formatter('%(asctime)s %(message)s')
fh.setFormatter(formatter)

Two caveats:

  • this applies to handlers, not loggers..
  • winswitch may not be able to parse those messages correctly, this will need to be checked first (and push an update with a version check bump if needed)

comment:2 Changed 9 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

done in r1172

comment:3 Changed 9 years ago by Antoine Martin

And... it's never as simple as one changeset is it?

r1251 uses the old logger for commands like "version" and "info" so we don't break parsing!

comment:4 Changed 4 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/131

Note: See TracTickets for help on using tickets.