+ Start a Discussion
Tim BarsottiTim Barsotti 

Debug logs max out at 7kb

Anyone have issues with debug logs? I have turned mine all the way down to NONE or ERROR level and am getting a log size of 3,967 bytes with the message that the "MAXIMUM DEBUG LOG SIZE REACHED". Any input would be great.
David "w00t!" LiuDavid "w00t!" Liu
Get this all the time!

Try setting all filters down to "None", except set the System filter to "Error".

Then replace this:
System.debug('hello world');

With this:
System.debug(LoggingLevel.ERROR, 'hello world');

That'll reduce all the debugs down to the bare minimum!

Make sure you have the proper overrides in place in your debug logs or Apex classes, as sometimes you might think you've reduced the logs but you have an override somewhere else!