Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Foundation/include/Poco/PatternFormatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ class Foundation_API PatternFormatter: public Formatter
/// throws a PropertyNotSupported exception if the given
/// name is not recognized.

bool getLocalTime() const;
/// Returns true if message timestamps are formatted in local time,
/// or false if formatted in UTC. Reflects the "times" property,
/// which defaults to UTC.

bool isLocalTimeConfigured() const;
/// Returns true if the "times" property has been explicitly set (via
/// setProperty or configuration), false if it is still at its default.
/// This lets callers distinguish an explicitly requested "UTC" from an
/// unspecified default - useful for adapters (e.g. FastLogger) that
/// default to local time unless a timezone was actually configured.

static const std::string PROP_PATTERN;
static const std::string PROP_TIMES;
static const std::string PROP_PRIORITY_NAMES;
Expand Down Expand Up @@ -152,6 +164,7 @@ class Foundation_API PatternFormatter: public Formatter

std::vector<PatternAction> _patternActions;
bool _localTime;
bool _localTimeSet;
std::string _pattern;
std::string _priorityNames;
std::string _priorities[9];
Expand Down
6 changes: 6 additions & 0 deletions Foundation/include/Poco/SplitterChannel.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ class Foundation_API SplitterChannel: public Channel
int count() const;
/// Returns the number of channels in the SplitterChannel.

Channel::Ptr getChannel(int index) const;
/// Returns the channel at the given (0-based) index, or null when index
/// is out of range. Together with count() this lets callers enumerate the
/// attached channels (e.g. FastLogger maps a SplitterChannel onto
/// multiple Quill sinks).

protected:
~SplitterChannel() override;

Expand Down
Loading
Loading