Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#571 closed enhancement (fixed)

Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration (thanks Ondrej Sterbak for the patch)

Reported by: Ondrej.Sterbak Owned by: bennylp
Priority: normal Milestone: release-1.0-rc1
Component: pjlib Version: trunk
Keywords: colors, log, runtime Cc:
Backport to 1.x milestone: Backported:

Description

I implemented log colors for Linux/UNIX console. As it is common to have consoles with light background it was needed to add support for runtime change of the colors as well.

I also added two more spaces between log headers and core log message for better readability as log decoration option.

Attachments (1)

runtime-color.patch (10.6 KB) - added by Ondrej.Sterbak 16 years ago.
Patch implementing described items.

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by Ondrej.Sterbak

Patch implementing described items.

comment:1 Changed 16 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

Patch checked-in in r2159 with some changes:

  • default coloring is disabled on non-Win32 (see log.c and pjsua_core.c)
  • in pjsua application, color can be manually enabled or disabled with --color or --no-color option

comment:2 Changed 16 years ago by bennylp

  • Summary changed from Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration to Coloring for logs in Linux/UNIX, two more spaces in logs and runtime log colors configuration (thanks Ondrej Sterbak for the patch)
Note: See TracTickets for help on using tickets.