Files
moslab-code/src/l4/pkg/l4re-core/l4re/include/log
2025-09-12 15:55:45 +02:00

53 lines
1.2 KiB
C++

// -*- Mode: C++ -*-
// vim:ft=cpp
/**
* \file
* \brief Log interface
*/
/*
* (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
* Alexander Warg <warg@os.inf.tu-dresden.de>
* economic rights: Technische Universität Dresden (Germany)
*
* License: see LICENSE.spdx (in this directory or the directories above)
*/
#pragma once
#include <l4/sys/vcon>
namespace L4Re {
/**
* \defgroup api_l4re_log Logging interface
* \ingroup api_l4re
* \brief Interface for log output.
*
* The logging interface provides a facility sending log output.
* One purpose of the interface is to serialize the output and provide
* the possibility to tag output sent to a specific log object.
*/
/**
* \brief Log interface class
* \ingroup api_l4re_log
*/
class L4_EXPORT Log : public L4::Kobject_t<Log, L4::Vcon, L4::PROTO_EMPTY>
{
public:
/**
* \brief Print string with length len, NULL characters don't matter
*
* \param string string to print
* \param len length of string
*/
void printn(char const *string, int len) const noexcept;
/**
* \brief Print NULL-terminated string
*
* \param string string to print
*/
void print(char const *string) const noexcept;
};
}