-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logging envs and defaulting mechanism (#106)
- Loading branch information
Showing
11 changed files
with
439 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Licensed to Elasticsearch B.V under one or more agreements. | ||
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. | ||
// See the LICENSE file in the project root for more information | ||
|
||
namespace Elastic.OpenTelemetry.Configuration; | ||
|
||
/// <summary> | ||
/// Control how the distribution should globally log. | ||
/// </summary> | ||
[Flags] | ||
public enum LogTargets | ||
{ | ||
|
||
/// <summary>No global logging </summary> | ||
None, | ||
/// <summary> | ||
/// Enable file logging. Use <see cref="ElasticOpenTelemetryOptions.LogLevel"/> | ||
/// and <see cref="ElasticOpenTelemetryOptions.LogDirectoryDefault"/> to set any values other than the defaults | ||
/// </summary> | ||
File = 1 << 0, //1 | ||
/// <summary> | ||
/// Write to standard out, useful in scenarios where file logging might not be an option or harder to set up. | ||
/// <para>e.g. containers, k8s, etc.</para> | ||
/// </summary> | ||
StdOut = 1 << 1, //2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.