mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
#318: Logger local time doesn't automatically account for DST (PatternFormatter)
This commit is contained in:
@@ -121,10 +121,11 @@ protected:
|
||||
/// Returns a string for the given priority value.
|
||||
|
||||
private:
|
||||
|
||||
struct PatternAction
|
||||
{
|
||||
PatternAction(): key(0), length(0) {}
|
||||
PatternAction(): key(0), length(0)
|
||||
{
|
||||
}
|
||||
|
||||
char key;
|
||||
int length;
|
||||
@@ -132,16 +133,14 @@ private:
|
||||
std::string prepend;
|
||||
};
|
||||
|
||||
std::vector<PatternAction> _patternActions;
|
||||
bool _localTime;
|
||||
Timestamp::TimeDiff _localTimeOffset;
|
||||
std::string _pattern;
|
||||
|
||||
|
||||
void ParsePattern();
|
||||
void parsePattern();
|
||||
/// Will parse the _pattern string into the vector of PatternActions,
|
||||
/// which contains the message key, any text that needs to be written first
|
||||
/// a proprety in case of %[] and required length.
|
||||
|
||||
std::vector<PatternAction> _patternActions;
|
||||
bool _localTime;
|
||||
std::string _pattern;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user