I have searched and found this, but it is not the same question.
I would like to suppress log statement for some classes. In older versions of Salesforce we were able to do this via the Trace Flags tab on the apex class page.
Now in version 40 (started a few releases ago) the Trace Flags tab is different and you can only turn on logging.
I created a log level that has each category set to None and assigned it to a class and what I get instead of nothing is this noise repeated for every debug statement that would have been there:
11:29:19.0 (16907488)|PUSH_TRACE_FLAGS|[EXTERNAL]|01p60000000UmVB|my class name|APEX_CODE,NONE;APEX_PROFILING,NONE;CALLOUT,NONE;DB,NONE;SYSTEM,NONE;VALIDATION,NONE;VISUALFORCE,NONE;WAVE,NONE;WORKFLOW,NONE 11:29:19.0 (17017401)|POP_TRACE_FLAGS|[EXTERNAL]|01p60000000UmVB|my class name|APEX_CODE,DEBUG;APEX_PROFILING,DEBUG;CALLOUT,DEBUG;DB,DEBUG;SYSTEM,DEBUG;VALIDATION,DEBUG;VISUALFORCE,DEBUG;WAVE,INFO;WORKFLOW,DEBUG