-
I am writing a ccf app, when I want to use logger(LOG_DEBUG_FMT) to print some debug messages, but the -l (--host-log-level) option can't change log level in enclave, so I read the logger.h code, I found the level function Line 254 in 16aaccf so why not provide a global log level option? or it existed but I did not know? and what is the best way to use logger in enclave? thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@svenFeng @svenFeng today the best way to use the logger in enclave is to build with -DVERBOSE_LOGGING=ON This limitation is deliberate, and has to do with a combination of things:
So the result in practice is that an enclave has to be built for a given logging level. While this is true today, it could be changed. In particular, if joiners sent an mrenclave and a configuration, the network could apply a policy on the configuration and decide whether it wants to let a node using debug logging join the network. This has been discussed before, and will likely happen, but it's not at the top of our priorities right now. |
Beta Was this translation helpful? Give feedback.
@svenFeng
@svenFeng today the best way to use the logger in enclave is to build with -DVERBOSE_LOGGING=ON
This limitation is deliberate, and has to do with a combination of things:
So the result in practi…