Ignore:
Timestamp:
31/01/2008 23:44:54 (4 years ago)
Author:
chris
Message:

Add support for microsecond timestamps and PID logging on console log
for daemons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/Daemon.cpp

    r2021 r2081  
    107107                "DFk" 
    108108        #endif 
    109                 "hqvVt:T"; 
     109                "hPqvVt:TU"; 
    110110} 
    111111 
     
    126126        "  -k         Keep console open after fork, keep writing log messages to it\n" 
    127127#endif 
     128        "  -P         Show process ID (PID) in console output\n" 
    128129        "  -q         Run more quietly, reduce verbosity level by one, can repeat\n" 
    129130        "  -v         Run more verbosely, increase verbosity level by one, can repeat\n" 
    130131        "  -V         Run at maximum verbosity\n" 
    131132        "  -t <tag>   Tag console output with specified marker\n" 
    132         "  -T         Timestamp console output\n"; 
     133        "  -T         Timestamp console output\n" 
     134        "  -U         Timestamp console output with microseconds\n"; 
    133135} 
    134136 
     
    182184                break; 
    183185 
     186                case 'P': 
     187                { 
     188                        Console::SetShowPID(true); 
     189                } 
     190                break; 
     191 
    184192                case 'q': 
    185193                { 
     
    223231                { 
    224232                        Console::SetShowTime(true); 
     233                } 
     234                break; 
     235 
     236                case 'U': 
     237                { 
     238                        Console::SetShowTime(true); 
     239                        Console::SetShowTimeMicros(true); 
    225240                } 
    226241                break; 
Note: See TracChangeset for help on using the changeset viewer.