open62541 1.3.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
log.h File Reference
#include <open62541/config.h>
#include <stdarg.h>

Go to the source code of this file.

Data Structures

struct  UA_Logger
 

Enumerations

enum  UA_LogLevel
 
enum  UA_LogCategory
 

Functions

 va_start (args, msg)
 
logger log (logger->context, UA_LOGLEVEL_TRACE, category, msg, args)
 
 va_end (args)
 
logger log (logger->context, UA_LOGLEVEL_DEBUG, category, msg, args)
 
logger log (logger->context, UA_LOGLEVEL_INFO, category, msg, args)
 
logger log (logger->context, UA_LOGLEVEL_WARNING, category, msg, args)
 
logger log (logger->context, UA_LOGLEVEL_ERROR, category, msg, args)
 
logger log (logger->context, UA_LOGLEVEL_FATAL, category, msg, args)
 

Variables

static UA_LogCategory category
 
static UA_LogCategory const char * msg
 
static UA_LogCategory const char va_list args
 

Enumeration Type Documentation

◆ UA_LogLevel

This Source Code Form is subject to the terms of the Mozilla Public License, v.

2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright 2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer) Copyright 2017 (c) Stefan Profanter, fortiss GmbH

Enumerator
UA_LOGLEVEL_TRACE 
UA_LOGLEVEL_DEBUG 
UA_LOGLEVEL_INFO 
UA_LOGLEVEL_WARNING 
UA_LOGLEVEL_ERROR 
UA_LOGLEVEL_FATAL 

Definition at line 20 of file log.h.

◆ UA_LogCategory

Enumerator
UA_LOGCATEGORY_NETWORK 
UA_LOGCATEGORY_SECURECHANNEL 
UA_LOGCATEGORY_SESSION 
UA_LOGCATEGORY_SERVER 
UA_LOGCATEGORY_CLIENT 
UA_LOGCATEGORY_USERLAND 
UA_LOGCATEGORY_SECURITYPOLICY 

Definition at line 29 of file log.h.

Function Documentation

◆ va_start()

va_start ( args ,
msg  )

◆ log() [1/6]

logger log ( logger-> context,
UA_LOGLEVEL_TRACE ,
category ,
msg ,
args  )

◆ va_end()

va_end ( args )

◆ log() [2/6]

logger log ( logger-> context,
UA_LOGLEVEL_DEBUG ,
category ,
msg ,
args  )

◆ log() [3/6]

logger log ( logger-> context,
UA_LOGLEVEL_INFO ,
category ,
msg ,
args  )

◆ log() [4/6]

logger log ( logger-> context,
UA_LOGLEVEL_WARNING ,
category ,
msg ,
args  )

◆ log() [5/6]

logger log ( logger-> context,
UA_LOGLEVEL_ERROR ,
category ,
msg ,
args  )

◆ log() [6/6]

logger log ( logger-> context,
UA_LOGLEVEL_FATAL ,
category ,
msg ,
args  )

Variable Documentation

◆ category

static UA_LogCategory category

Definition at line 53 of file log.h.

◆ msg

static UA_LogCategory const char * msg

Definition at line 53 of file log.h.

◆ args

static UA_LogCategory const char va_list args
Initial value:
{
if(!logger || !logger->log)
return

Definition at line 57 of file log.h.