Mikel Blanchard
ab10e119ba
[Logs] Serilog extensions project ( #3438 )
...
* Add Serilog extensions project.
* Improve provider disposal when using serilog.
* Warning fixes.
* Fix README.
* Code review.
* Move Serilog version to props.
* Rename LogEmitter.Log -> Emit.
* Added unit tests.
* Warning cleanup.
* Code review.
* Standard README jazz.
* Removed ApiCompat block.
2022-07-18 09:38:02 -07:00
Mikel Blanchard
be588bdcd3
Logs: Add LogEmitter API ( #3423 )
...
* Add LogEmitter API.
* Added LogEmitter tests.
* Updated to NOT push ILogger scopes onto LogRecords created through LogEmitter.
* Timestamp tests.
* LogRecordAttributeList tests + bug fix.
* Warning cleanup.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-07-11 08:59:44 -07:00
Mikel Blanchard
9858e3ace3
Logs: Add log record pooling ( #3385 )
...
* Add log record pooling.
* Tweak.
* Update CHANGELOG.
* Code review.
* Code review.
* Code review.
* Code review.
* Nit.
* Improvement.
* Code review.
* Make resize internal.
* Add more details to comments about write race.
* State buffering tests.
* Comments about buffering.
* Added code comments.
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2022-06-30 09:33:09 -07:00
Mikel Blanchard
17e6d76087
Logs: Add helper ctors & forceflush on OpenTelemetryLoggerProvider ( #3364 )
...
* Add helper ctors & forceflush on OpenTelemetryLoggerProvider.
* CHANGELOG update.
* Unit tests.
* Code review.
* Code review.
* Tweak.
2022-06-16 15:50:17 -07:00
Mikel Blanchard
b680ec624c
In-memory Exporter: Buffer log scopes ( #3360 )
...
* Buffer log scopes when using in-memory exporter.
* CHANGELOG update.
* Code review.
* Tests.
* CHANGELOG tweak.
2022-06-15 10:01:58 -07:00
Yun-Ting Lin
11699a351e
Exposed public setters for LogRecord.State, LogRecord.StateValues, and LogRecord.FormattedMessage. ( #3217 )
2022-04-21 22:02:47 -07:00
Cijo Thomas
733c59ad1e
Remove net461 from console inmemory exporters, asp.net ( #3193 )
2022-04-15 12:11:04 -07:00
Timothy Mothra
9da4ff798a
new tests: LoggerApi gets Resource with correct values (testing ResourceBuilder) ( #3063 )
2022-04-11 10:55:20 -07:00
Travis Illig
7ed97be908
Fix analyzers ( #3053 )
2022-04-01 07:46:32 -07:00
Timothy Mothra
eefffa965c
OpenTelemetryLoggerProvider is now unaffected by changes to OpenTelemetryLoggerOptions after the LoggerFactory is built. ( #3055 )
2022-03-29 19:14:33 -07:00
Mikel Blanchard
bf79f0d40d
Update preprocessor directives ahead of System.Diagnostics.DiagnosticSource .NET 7 update. ( #3095 )
2022-03-28 07:20:22 -07:00
Travis Illig
2a97920ff0
Fix IDE0090: 'new' expression can be simplified. ( #3012 )
...
* Set rule for new() usage.
* Fix IDE0090 "'new' expression can be simplified"
2022-03-10 08:57:53 -08:00
Utkarsh Umesan Pillai
4323c93e14
Refactor UnitTests ( #2212 )
...
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-07-29 16:56:36 -07:00
Cijo Thomas
ceaaa40262
Logformatter null check ( #2200 )
2021-07-29 10:31:08 -07:00
Joao Grassi
64b967a49b
Remove net452 and net46 from the in-memory exporter project ( #2144 )
2021-07-17 10:04:22 -07:00
Mikel Blanchard
6cdfcea67c
Logs: Scope improvements ( #2026 )
2021-05-06 10:12:43 -07:00
Mikel Blanchard
b021b63a28
Logs: Scopes, State, & FormattedMessage follow-up ( #1883 )
...
* Code review, unit tests, and performance tweaks for logging changes.
* Fixed up ConsoleLogRecordExporter for renames.
* CHANGELOG update.
2021-03-13 11:34:02 -08:00
Christian Neumüller
3bb0445aa4
Fix LogRecordTest by using InvariantCulture. ( #1683 )
...
* Fix LogRecordTest by using InvariantCulture.
The test would fail if the current locale used something other than a
dot as the decimal separator (e.g. comma).
* dotnet-format
2021-01-11 09:44:08 -08:00
Utkarsh Umesan Pillai
e2a908e089
Added SimpleExporter and BatchExporter for Activity and LogRecord ( #1622 )
...
* Added SimpleExporter and BatchExporter for Activity and LogRecord
* Updated the .publicApi text files
* Updated the README to use SimpleActivityExportProcessor instead of SimpleExportProcessor<Activity>
* Updated CHANGELOG.md
* Updated CHANGELOG.md
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2021-01-06 11:59:19 -08:00
Utkarsh Umesan Pillai
fe9e90d367
Add Unit Tests for Logs ( #1613 )
...
* Added UnitTests for Logs
* Added unit test for BatchExportProcessor for Logs
* Update LogLevels test
* Update the description for RecordOnly and RecordAndSample
* Addressed PR comments
* Addressed PR comments
* Addressed PR comments
Co-authored-by: Cijo Thomas <cithomas@microsoft.com>
2020-11-25 11:14:03 -08:00