Example #1
0
        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);
        }
Example #2
0
 private void writeToLog(string Title, string Description)
 {
     var logWriter = new LogWriter("System Log", base.sessionAccessToken, base.sessionSPUri);
     logWriter.WriteLog(Title, Description);
 }