Sublime Forum

Command logging

#1

I’m using ST3 and I had a problem about key binding so I was advised to turn on command logging to find the relevant command which I did and all went well. Problem now is, how do I turn off command logging? I used this in the console: sublime.log_commands(flag)

I have tried sublime.log_commands(false) and sublime.log_commands(0) and sublime.log_commands(none) but they all result in error messages so how do I turn it off?

0 Likes

#2

You need to use Python’s boolean constants:

sublime.log_commands(False)
0 Likes

#3

Sorry for slow response but forum emails are not being sent to my inbox.

Thank you very much for this which works. The capital F for False seems to be the magic.

0 Likes

#4

Hmmm… seems pretty picky. :wink:

0 Likes