Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
debug_log.h
Go to the documentation of this file.
1// Copyright 2026 The Symbian SDK Authors.
2// Licensed under the Apache License, Version 2.0.
3
4#ifndef SYMBIAN_API_SYSTEM_DEBUG_LOG_H_
5#define SYMBIAN_API_SYSTEM_DEBUG_LOG_H_
6
7#include <cstddef>
8#include <span>
9#include <string_view>
10
11namespace symbian::api::system {
12
13// Writes a diagnostic byte string to the platform debug sink. This function
14// does not allocate, buffer, or promise that a sink is present on the device.
15void DebugLog(std::string_view message);
16
17// Copies the newest complete or partial diagnostic lines into destination.
18// Returns the number of bytes copied in chronological order. The fixed-size
19// process ring captures DebugLog calls even when no platform sink is present.
20std::size_t CopyRecentDebugLogs(std::span<char> destination);
21
22} // namespace symbian::api::system
23
24#endif // SYMBIAN_API_SYSTEM_DEBUG_LOG_H_
Definition active_service.h:12
void DebugLog(std::string_view message)
Definition debug_log.cc:46
std::size_t CopyRecentDebugLogs(std::span< char > destination)
Definition debug_log.cc:60