FreeRDP
|
#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) |
WinPR: Windows Portable Runtime WinPR Logger
Copyright 2013 Marc-Andre Moreau marca ndre .more au@g mail. 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.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
wLogLayout* WLog_GetLogLayout | ( | wLog * | log | ) |
void WLog_Layout_Free | ( | wLog * | log, |
wLogLayout * | layout | ||
) |
BOOL WLog_Layout_GetMessagePrefix | ( | wLog * | log, |
wLogLayout * | layout, | ||
wLogMessage * | message | ||
) |
wLogLayout* WLog_Layout_New | ( | wLog * | log | ) |
BOOL WLog_Layout_SetPrefixFormat | ( | wLog * | log, |
wLogLayout * | layout, | ||
const char * | format | ||
) |
|
static |
|
static |
Log Layout