fdf::Logger
Summary
Public functions
|
BeginRecord(fuchsia_syslog::LogBuffer & buffer, FuchsiaLogSeverity severity, cpp17::optional< cpp17::string_view > file_name, unsigned int line, cpp17::optional< cpp17::string_view > message, uint32_t dropped)
|
void
|
FlushRecord(fuchsia_syslog::LogBuffer & buffer, uint32_t dropped)
|
bool
|
GetAndResetDropped()
|
uint32_t
|
GetSeverity()
|
FuchsiaLogSeverity
|
SetSeverity(FuchsiaLogSeverity severity)
|
void
|
logf(FuchsiaLogSeverity severity, const char *tag, const char *file, int line, const char *msg, ...) __PRINTFLIKE(6
|
void
|
logvf(FuchsiaLogSeverity severity, const char *tag, const char *file, int line, const char *msg, va_list args)
|
void void
|
logvf(FuchsiaLogSeverity severity, cpp20::span< std::string > tags, const char *file, int line, const char *msg, va_list args)
|
void
|
Public static functions
Create
zx::result< std::unique_ptr< Logger > > Create(
const Namespace & ns,
async_dispatcher_t *dispatcher,
std::string_view name,
FuchsiaLogSeverity min_severity,
bool wait_for_initial_interest
)
GlobalInstance
Logger * GlobalInstance()
HasGlobalInstance
bool HasGlobalInstance()
SetGlobalInstance
void SetGlobalInstance(
Logger *
)
Public functions
GetAndResetDropped
uint32_t GetAndResetDropped()
GetSeverity
FuchsiaLogSeverity GetSeverity()
Logger
Logger(
std::string_view name,
FuchsiaLogSeverity min_severity,
zx::socket socket,
fidl::WireClient< fuchsia_logger::LogSink > log_sink
)
SetSeverity
void SetSeverity(
FuchsiaLogSeverity severity
)
logf
void logf(
FuchsiaLogSeverity severity,
const char *tag,
const char *file,
int line,
const char *msg,
...
) __PRINTFLIKE(6
logvf
void void logvf(
FuchsiaLogSeverity severity,
const char *tag,
const char *file,
int line,
const char *msg,
va_list args
)
logvf
void logvf(
FuchsiaLogSeverity severity,
cpp20::span< std::string > tags,
const char *file,
int line,
const char *msg,
va_list args
)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-27 UTC."],[],[]]