wlmaker
Loading...
Searching...
No Matches
Functions | Variables
wlr_log.c File Reference
#include "wlr_log.h"
#include <libbase/libbase.h>
#include <limits.h>
#include <regex.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <wlr/util/log.h>
Include dependency graph for wlr_log.c:

Functions

static void _wlm_util_wlr_log_to_bs (enum wlr_log_importance importance, const char *fmt, va_list args)
 
bool wlm_util_wlr_log_init (enum wlr_log_importance verbosity)
 

Variables

static regex_t _wlm_util_wlr_log_regex
 
static const char * _wlm_util_wlr_log_regex_string
 

Detailed Description

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

https://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

◆ _wlm_util_wlr_log_to_bs()

static void _wlm_util_wlr_log_to_bs ( enum wlr_log_importance  importance,
const char *  fmt,
va_list  args 
)
static

Wraps the wlr_log calls on bs_log.

Parameters
importance
fmt
args

◆ wlm_util_wlr_log_init()

bool wlm_util_wlr_log_init ( enum wlr_log_importance  verbosity)

Initializes wlroots logging to redirect into bs_log().

Parameters
verbosity

Variable Documentation

◆ _wlm_util_wlr_log_regex

regex_t _wlm_util_wlr_log_regex
static

Compiled regular expression for extracting file & line no. from wlr_log.

◆ _wlm_util_wlr_log_regex_string

const char* _wlm_util_wlr_log_regex_string
static
Initial value:
=
"^\\[([^\\:]+)\\:([0-9]+)\\]\\ "

Regular expression string for extracting file & line no. from wlr_log.