Skip to content

Commit

Permalink
Merge pull request log4cplus#149 from wilx/1.2.x
Browse files Browse the repository at this point in the history
Fix GitHub bug log4cplus#148.
  • Loading branch information
wilx committed Mar 2, 2016
2 parents c8ead64 + 78a51c3 commit eca9b0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/layout.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ SimpleLayout::formatAndAppend(log4cplus::tostream& output,
// log4cplus::TTCCLayout ctors and dtor
///////////////////////////////////////////////////////////////////////////////

TTCCLayout::TTCCLayout(bool use_gmtime_, bool thread_printing_,
TTCCLayout::TTCCLayout(bool use_gmtime_, bool thread_printing_,
bool category_prefixing_, bool context_printing_)
: dateFormat()
, use_gmtime(use_gmtime_)
Expand All @@ -114,6 +114,10 @@ TTCCLayout::TTCCLayout(const log4cplus::helpers::Properties& properties)
: Layout(properties)
, dateFormat(properties.getProperty (LOG4CPLUS_TEXT("DateFormat"),
internal::empty_str))
, use_gmtime (false)
, thread_printing (true)
, category_prefixing (true)
, context_printing (true)
{
properties.getBool (use_gmtime, LOG4CPLUS_TEXT("Use_gmtime"));
properties.getBool (thread_printing, LOG4CPLUS_TEXT("ThreadPrinting"));
Expand Down

0 comments on commit eca9b0e

Please sign in to comment.