Sublime Forum

How can I let the sublime console change logging level?

#1

I would like to see debug info and change logger parameters. But I cannot find any setting can do this.

0 Likes

#2

Use on the console: (View -> Show Console)

sublime.log_input(True); sublime.log_commands(True); sublime.log_result_regex(True)

To disable it do:

sublime.log_input(False); sublime.log_commands(False); sublime.log_result_regex(False)
0 Likes

#3

I surely tried this. But it does not change the log level. Thus all the logger message with level lower than INFO does not get displayed. I do not know where I can change logger parameters like common python packages with dictionary or config file neither.

0 Likes

#4

Can you elabore the steps required to reproduce the problem?

0 Likes

#5

Sure.
try this:
import logging; log = logging.getLogger("test"); log.debug("this is debug"); log.info("this is info")
What I want to achieve is to change the root logger of python to let it display “this is debug” and “this is info”. Thus any plugins which does not have their separated logger level settings can be controlled via the sublime’s root logger.

I want the root logger get changed as earlier as possible. Not till all plugins loaded and console opened.

1 Like