diff options
author | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:11:35 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2008-09-13 15:11:35 +0000 |
commit | b2a85e250ae595266fba001c9889fe8a3ee660e3 (patch) | |
tree | 21aac6f0a579676d12a30568986580732b57881a /infrastructure/buildenv-testmain-template.cpp | |
parent | 1ba40180e9740a151ddc1a23bb497ade403ec103 (diff) |
Unify program name and console logging tags.
Add a new class, Logging::Tagger, which can be used to temporarily
add information to the program name, such as the client ID in bbstored.
Diffstat (limited to 'infrastructure/buildenv-testmain-template.cpp')
-rw-r--r-- | infrastructure/buildenv-testmain-template.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/infrastructure/buildenv-testmain-template.cpp b/infrastructure/buildenv-testmain-template.cpp index 661c0100..14b31b27 100644 --- a/infrastructure/buildenv-testmain-template.cpp +++ b/infrastructure/buildenv-testmain-template.cpp @@ -257,7 +257,8 @@ int main(int argc, char * const * argv) case 't': { - Console::SetTag(optarg); + Logging::SetProgramName(optarg); + Console::SetShowTag(true); } break; |