Implements a file-based logging channel supporting log rotation, archiving, and purging strategies. Reuse in C++ applications needing robust file logging with automatic maintenance.
// 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.
//
// FileChannel.h
//
// Library: Foundation
// Package: Logging
// Module: FileChannel
//
// Definition of the FileChannel class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Foundation_FileChannel_INCLUDED
#define Foundation_FileChannel_INCLUDED
#include "Poco/Channel.h"
#include "Poco/Foundation.h"
#include "Poco/Mutex.h"
#include "Poco/Timespan.h"
#include "Poco/Timestamp.h"
namespace Poco
{
class LogFile;
class RotateStrategy;
class ArchiveStrategy;
class PurgeStrategy;
class Foundation_API FileCh
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key