FreeRDP
ConsoleAppender.c File Reference
#include <winpr/config.h>
#include "ConsoleAppender.h"
#include "Message.h"

Macros

#define WLOG_CONSOLE_DEFAULT   0
 
#define WLOG_CONSOLE_STDOUT   1
 
#define WLOG_CONSOLE_STDERR   2
 
#define WLOG_CONSOLE_DEBUG   4
 

Functions

static BOOL WLog_ConsoleAppender_Open (wLog *log, wLogAppender *appender)
 
static BOOL WLog_ConsoleAppender_Close (wLog *log, wLogAppender *appender)
 
static BOOL WLog_ConsoleAppender_WriteMessage (wLog *log, wLogAppender *appender, wLogMessage *message)
 
static BOOL WLog_ConsoleAppender_WriteDataMessage (wLog *log, wLogAppender *appender, wLogMessage *message)
 
static BOOL WLog_ConsoleAppender_WriteImageMessage (wLog *log, wLogAppender *appender, wLogMessage *message)
 
static BOOL WLog_ConsoleAppender_WritePacketMessage (wLog *log, wLogAppender *appender, wLogMessage *message)
 
static BOOL WLog_ConsoleAppender_Set (wLogAppender *appender, const char *setting, void *value)
 
static void WLog_ConsoleAppender_Free (wLogAppender *appender)
 
wLogAppender * WLog_ConsoleAppender_New (wLog *log)
 

Variables

static int g_DataId = 0
 
static int g_ImageId = 0
 
static int g_PacketId = 0
 

Macro Definition Documentation

◆ WLOG_CONSOLE_DEBUG

#define WLOG_CONSOLE_DEBUG   4

◆ WLOG_CONSOLE_DEFAULT

#define WLOG_CONSOLE_DEFAULT   0

WinPR: Windows Portable Runtime WinPR Logger

Copyright 2013 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ WLOG_CONSOLE_STDERR

#define WLOG_CONSOLE_STDERR   2

◆ WLOG_CONSOLE_STDOUT

#define WLOG_CONSOLE_STDOUT   1

Function Documentation

◆ WLog_ConsoleAppender_Close()

static BOOL WLog_ConsoleAppender_Close ( wLog *  log,
wLogAppender *  appender 
)
static
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_Free()

static void WLog_ConsoleAppender_Free ( wLogAppender *  appender)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_New()

wLogAppender* WLog_ConsoleAppender_New ( wLog *  log)

WinPR: Windows Portable Runtime WinPR Logger

Copyright 2013 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_Open()

static BOOL WLog_ConsoleAppender_Open ( wLog *  log,
wLogAppender *  appender 
)
static
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_Set()

static BOOL WLog_ConsoleAppender_Set ( wLogAppender *  appender,
const char *  setting,
void *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_WriteDataMessage()

static BOOL WLog_ConsoleAppender_WriteDataMessage ( wLog *  log,
wLogAppender *  appender,
wLogMessage message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_WriteImageMessage()

static BOOL WLog_ConsoleAppender_WriteImageMessage ( wLog *  log,
wLogAppender *  appender,
wLogMessage message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_WriteMessage()

static BOOL WLog_ConsoleAppender_WriteMessage ( wLog *  log,
wLogAppender *  appender,
wLogMessage message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_ConsoleAppender_WritePacketMessage()

static BOOL WLog_ConsoleAppender_WritePacketMessage ( wLog *  log,
wLogAppender *  appender,
wLogMessage message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_DataId

int g_DataId = 0
static

◆ g_ImageId

int g_ImageId = 0
static

◆ g_PacketId

int g_PacketId = 0
static