Add Uuid and HttpException. Logger now includes Uuid's

Signed-off-by: WimVelzeboer <william@velzeboer.nl>
This commit is contained in:
WimVelzeboer
2023-08-01 12:19:18 +01:00
parent 18009957bf
commit 752573c3cd
19 changed files with 956 additions and 12 deletions
@@ -54,7 +54,12 @@ public with sharing class fflib_Logger implements fflib_ILogger
public void add(LoggingLevel loggingLevel, Exception e)
{
add(new fflib_LogEntry(loggingLevel, messageFormatter.format(e)));
fflib_LogEntry logEntry = new fflib_LogEntry(loggingLevel, messageFormatter.format(e));
if (e instanceof fflib_HttpException)
{
logEntry.uuid = ((fflib_HttpException) e).getUuid();
}
add(logEntry);
}
public void add(LoggingLevel loggingLevel, String message)