fdf::Logger
Summary
Public attributes
|
failing
|
zx::result< std::unique_ptr< Logger > > Use Create2 which will return a no op logger instead of
|
Public functions
|
BeginRecord(fuchsia_logging::LogBuffer & buffer, FuchsiaLogSeverity severity, std::optional< std::string_view > file_name, unsigned int line, std::optional< std::string_view > message, uint32_t dropped)
|
void
|
FlushRecord(fuchsia_logging::LogBuffer & buffer, uint32_t dropped)
|
bool
|
GetAndResetDropped()
|
uint32_t
|
GetSeverity()
|
FuchsiaLogSeverity
|
IsNoOp() const
|
bool
|
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 attributes
failing
zx::result< std::unique_ptr< Logger > > Use Create2 which will return a no op logger instead of failing
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
) ZX_DEPRECATED_SINCE(1
Create2
std::unique_ptr< Logger > Create2(
const Namespace & ns,
async_dispatcher_t *dispatcher,
std::string_view name,
FuchsiaLogSeverity min_severity
)
GlobalInstance
Logger * GlobalInstance()
HasGlobalInstance
bool HasGlobalInstance()
SetGlobalInstance
void SetGlobalInstance(
Logger *
)
Public functions
BeginRecord
void BeginRecord(
fuchsia_logging::LogBuffer & buffer,
FuchsiaLogSeverity severity,
std::optional< std::string_view > file_name,
unsigned int line,
std::optional< std::string_view > message,
uint32_t dropped
)
GetAndResetDropped
uint32_t GetAndResetDropped()
GetSeverity
FuchsiaLogSeverity GetSeverity()
IsNoOp
bool IsNoOp() const
Logger
Logger(
fuchsia_logging::Logger logger
)
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 2025-09-18 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 2025-09-18 UTC."],[],[]]