From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D1E884696C2 for ; Tue, 2 Jun 2020 01:25:46 +0300 (MSK) Received: by mail-lf1-f67.google.com with SMTP id r125so4873772lff.13 for ; Mon, 01 Jun 2020 15:25:46 -0700 (PDT) From: Cyrill Gorcunov Date: Tue, 2 Jun 2020 01:24:59 +0300 Message-Id: <20200601222507.560415-4-gorcunov@gmail.com> In-Reply-To: <20200601222507.560415-1-gorcunov@gmail.com> References: <20200601222507.560415-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v7 03/11] lua/log: declare say_logger_init and say_logger_initialized List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml We gonna use it to provide a way to initialize logger subsystem early. Part-of #689 Reviewed-by: Oleg Babin Reviewed-by: Leonid Vasiliev Signed-off-by: Cyrill Gorcunov --- src/lua/log.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lua/log.lua b/src/lua/log.lua index 312c14d5e..23529b30e 100644 --- a/src/lua/log.lua +++ b/src/lua/log.lua @@ -22,6 +22,12 @@ ffi.cdef[[ void say_set_log_format(enum say_format format); + extern void + say_logger_init(const char *init_str, int level, int nonblock, + const char *format, int background); + + extern bool + say_logger_initialized(void); extern sayfunc_t _say; extern struct ev_loop; -- 2.26.2