libnslog
Public Attributes | List of all members
nslog_entry_context_s Struct Reference

#include <nslog.h>

Public Attributes

nslog_category_tcategory
 
nslog_level level
 
const char * filename
 
int filenamelen
 
const char * funcname
 
int funcnamelen
 
int lineno
 

Detailed Description

Log entry context

When logging, nslog will create an entry context and pass it to the log callback. This context tells you everything about the log entry being created (except the message) and is ephemeral (if you need the content beyond the scope of the log callback, copy it).

Definition at line 109 of file nslog.h.

Member Data Documentation

◆ category

nslog_category_t* nslog_entry_context_s::category

The category under which the log entry is being made

Definition at line 110 of file nslog.h.

◆ filename

const char* nslog_entry_context_s::filename

The source filename where the log entry is

Definition at line 112 of file nslog.h.

◆ filenamelen

int nslog_entry_context_s::filenamelen

The source filename name's length

Definition at line 113 of file nslog.h.

◆ funcname

const char* nslog_entry_context_s::funcname

The source function where the log entry is

Definition at line 114 of file nslog.h.

◆ funcnamelen

int nslog_entry_context_s::funcnamelen

The source function name's length

Definition at line 115 of file nslog.h.

◆ level

nslog_level nslog_entry_context_s::level

The level at which the log entry is being made

Definition at line 111 of file nslog.h.

◆ lineno

int nslog_entry_context_s::lineno

The line number at which the log entry is

Definition at line 116 of file nslog.h.


The documentation for this struct was generated from the following file: