Give me a way to mute the libraries log #484
Closed
StefanoTesla
started this conversation in
Ideas
Replies: 1 comment
|
ok just adding: is working! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I'm not an expert.
I was looking for a way to mute this library and asyncTCP logs.
Looking on the Logging.h file I seen this:
Let's do it something like this:
#pragma once
#define async_tcp_log_e(format, ...) do {} while (0)
#define async_tcp_log_w(format, ...) do {} while (0)
#define async_tcp_log_i(format, ...) do {} while (0)
#define async_tcp_log_d(format, ...) do {} while (0)
#define async_tcp_log_v(format, ...) do {} while (0)
Ok, the file exist, but Hey, I'm on platform...where I need to put my
AsyncTCPLoggingCustom.hfile?I tried on include folder, lib folder, src folder nut the compiler won't find the file.
In other hands in in visual studio code i click on a logging function on
AsyncTCP.cppwill send me in my custom file.This is my platformio.ini file:
[env]
platform = espressif32
framework = arduino
monitor_speed = 115200
board_build.filesystem = littlefs ;
lib_deps =
esp32async/ESPAsyncWebServer@3.12.1
ayushsharma82/ElegantOTA@4.0.0
bblanchon/ArduinoJson@7.4.3
lib_compat_mode = strict
lib_ldf_mode = chain
; Ambiente per ESP32 Standard
[env:esp32dev]
board = esp32dev
board_build.partitions = partitions4MB.csv
build_flags =
-DASYNCWEBSERVER_LOG_CUSTOM = 1
-DCONFIG_ASYNC_TCP_LOG_CUSTOM = 1
-DELEGANTOTA_USE_ASYNC_WEBSERVER=1
; Ambiente per ESP32-S3
[env:esp32-s3]
platform = espressif32 @ 6.10.0
board = esp32-s3-devkitc-1
build_flags =
-DASYNCWEBSERVER_LOG_CUSTOM = 1
-DCONFIG_ASYNC_TCP_LOG_CUSTOM = 1
-DELEGANTOTA_USE_ASYNC_WEBSERVER=1
-DIS_ESP32S3=1
-DCORE_DEBUG_LEVEL=4
-DARDUINO_USB_CDC_ON_BOOT=1
Any ideas? Why not a simple #define CONFIG_ASYNC_TCP_ZERO_LOG?
All reactions