private void BuildLoggingContext(SPRemoteEventProperties properties) { ClientContext loggingContext = GetClientContext(properties); syslogWriter = new LogWriter(GRSPEventReciever.SYSTEM_LOG_LABEL, loggingContext); errorlogWriter = new LogWriter(GRSPEventReciever.ERROR_LOG_LABEL, loggingContext); }
private void writeToLog(string Title, string Description) { var logWriter = new LogWriter("System Log", base.sessionAccessToken, base.sessionSPUri); logWriter.WriteLog(Title, Description); }