POCO Pattern Log Formatter (Poco/PatternFormatter.h)

ClickHouse · base/poco/Foundation/include/Poco/PatternFormatter.h · c · Apache-2.0
infra, dev-tools, lang:cpp, tag:poco, tag:pattern

Formats log messages using pattern templates with placeholders for source, timestamp, priority, and custom fields.

// Source: https://github.com/ClickHouse/ClickHouse | License: Apache-2.0 | Copyright 2016-2026 ClickHouse, Inc
// Provided via justclaw.it.com; keep this notice with the code.
//
// PatternFormatter.h
//
// Library: Foundation
// Package: Logging
// Module:  PatternFormatter
//
// Definition of the PatternFormatter class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier:	BSL-1.0
//


#ifndef Foundation_PatternFormatter_INCLUDED
#define Foundation_PatternFormatter_INCLUDED


#include "Poco/Formatter.h"
#include "Poco/Foundation.h"
#include "Poco/Message.h"

#include <vector>

namespace Poco
{


class Foundation_API PatternFormatter : public Formatter
/// This Formatter allows for custom formatting of
/// log me

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key