FreeRDP
Layout.c File Reference
#include <winpr/config.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/print.h>
#include <winpr/sysinfo.h>
#include <winpr/environment.h>
#include "wlog.h"
#include "Layout.h"

Macros

#define MIN(x, y)   (((x) < (y)) ? (x) : (y))
 
#define ENTRY(x)   x, sizeof(x) - 1
 

Functions

static void WLog_PrintMessagePrefixVA (wLog *log, wLogMessage *message, WINPR_FORMAT_ARG const char *format, va_list args)
 
static void WLog_PrintMessagePrefix (wLog *log, wLogMessage *message, WINPR_FORMAT_ARG const char *format,...)
 
static const char * get_tid (void *arg)
 
static BOOL log_invalid_fmt (const char *what)
 
static BOOL check_and_log_format_size (char *format, size_t size, size_t index, size_t add)
 
static int opt_compare_fn (const void *a, const void *b)
 
static BOOL replace_format_string (const char *FormatString, struct format_option_recurse *recurse, char *format, size_t formatlen)
 
static const char * skip_if_null (const struct format_option *opt, const char *fmt, size_t *preplacelen, size_t *pskiplen)
 
BOOL WLog_Layout_GetMessagePrefix (wLog *log, wLogLayout *layout, wLogMessage *message)
 
wLogLayout * WLog_GetLogLayout (wLog *log)
 
BOOL WLog_Layout_SetPrefixFormat (wLog *log, wLogLayout *layout, const char *format)
 
wLogLayout * WLog_Layout_New (wLog *log)
 
void WLog_Layout_Free (wLog *log, wLogLayout *layout)
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY (   x)    x, sizeof(x) - 1

◆ MIN

#define MIN (   x,
  y 
)    (((x) < (y)) ? (x) : (y))

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.

Function Documentation

◆ check_and_log_format_size()

static BOOL check_and_log_format_size ( char *  format,
size_t  size,
size_t  index,
size_t  add 
)
static
Here is the caller graph for this function:

◆ get_tid()

static const char* get_tid ( void *  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ log_invalid_fmt()

static BOOL log_invalid_fmt ( const char *  what)
static
Here is the caller graph for this function:

◆ opt_compare_fn()

static int opt_compare_fn ( const void *  a,
const void *  b 
)
static
Here is the caller graph for this function:

◆ replace_format_string()

static BOOL replace_format_string ( const char *  FormatString,
struct format_option_recurse *  recurse,
char *  format,
size_t  formatlen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip_if_null()

static const char* skip_if_null ( const struct format_option *  opt,
const char *  fmt,
size_t *  preplacelen,
size_t *  pskiplen 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_GetLogLayout()

wLogLayout* WLog_GetLogLayout ( wLog *  log)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_Layout_Free()

void WLog_Layout_Free ( wLog *  log,
wLogLayout *  layout 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_Layout_GetMessagePrefix()

BOOL WLog_Layout_GetMessagePrefix ( wLog *  log,
wLogLayout *  layout,
wLogMessage message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_Layout_New()

wLogLayout* WLog_Layout_New ( wLog *  log)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_Layout_SetPrefixFormat()

BOOL WLog_Layout_SetPrefixFormat ( wLog *  log,
wLogLayout *  layout,
const char *  format 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_PrintMessagePrefix()

static void WLog_PrintMessagePrefix ( wLog *  log,
wLogMessage message,
WINPR_FORMAT_ARG const char *  format,
  ... 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WLog_PrintMessagePrefixVA()

static void WLog_PrintMessagePrefixVA ( wLog *  log,
wLogMessage message,
WINPR_FORMAT_ARG const char *  format,
va_list  args 
)
static

Log Layout

Here is the caller graph for this function: