Here are the examples of the csharp api class Google.Cloud.Logging.Log4Net.GoogleStackdriverAppender.Write(System.Collections.Generic.IEnumerable) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
0
1. Example
Project: google-cloud-dotnet
Source File: GoogleStackdriverAppender.cs
Source File: GoogleStackdriverAppender.cs
protected override void Append(LoggingEvent loggingEvent) { if (!_isActivated) { throw new InvalidOperationException($"{nameof(ActivateOptions)}() must be called before using this appender."); } var entries = new[] { BuildLogEntry(loggingEvent) }; Write(entries); }
0
2. Example
Project: google-cloud-dotnet
Source File: GoogleStackdriverAppender.cs
Source File: GoogleStackdriverAppender.cs
protected override void Append(LoggingEvent[] loggingEvents) { if (!_isActivated) { throw new InvalidOperationException($"{nameof(ActivateOptions)}() must be called before using this appender."); } var entries = loggingEvents.Select(x => BuildLogEntry(x)).ToList(); Write(entries); }