Activity Forums Salesforce® Discussions What is the Log level that should be set to see user-generated debug statements?

  • Anjali

    Member
    September 3, 2018 at 1:19 pm

    Hi Shradha,

    In  category such as Workflow ,Apex Code or user generated statement, use the level to specify the amount of information to be recorded in the debug log. The combination of category and level specify which events get logged. Changes to the filter only apply to future logged events.

    Log level provide amount of information of user generated debug statement to be recorded in debug log and after the validation changes to filter applied.

  • Parul

    Member
    September 3, 2018 at 1:23 pm

    Hello Shradha,

    There are 5 levels :

    Debug, Fine, Finer, Finest, Internal.

    but user don't see debug statements in levels "Info" or lower.

    So, there are 3 levels: Info, Warn, Error

     

    Thanks.

  • shariq

    Member
    September 15, 2018 at 1:07 am

    Hi,

    To add more -

    The minimum value to see any debug logs is a System level of ERROR, but most people only use the default logging level, so the usual recommendation is DEBUG. To debug at a lower level than debug, use the two parameter version of System.debug:

    System.debug(LoggingLevel.ERROR, somemessage);
    Also note, logs over 2mb may be truncated, including your debug messages.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos