Add logger functionality plus API upgrade

This commit is contained in:
wim
2021-10-11 13:20:43 +01:00
parent 029b76e2a0
commit 09578ffcc2
7 changed files with 37 additions and 98 deletions
@@ -47,25 +47,8 @@ public abstract with sharing class fflib_LogEventDomain extends fflib_PlatformEv
for (SObject record : Records)
{
this.logEntries.add(
new LogEntry((fflib_LogEvent__e) record)
new fflib_LogEntry((fflib_LogEvent__e) record)
);
}
}
public class LogEntry
{
public Id createdById;
public Datetime createdDatetime;
public System.LoggingLevel loggingLevel;
public String message;
public LogEntry(fflib_LogEvent__e event)
{
this.loggingLevel = System.LoggingLevel.values().get((Integer) event.LogLevel__c);
this.message = event.message__c;
this.createdById = event.CreatedById;
this.createdDatetime = event.CreatedDate;
}
}
}