예제 #1
0
        //--- Constructors ---

        /// <summary>
        /// Initializes a new <see cref="LambdaSharpAppLoggerProvider"/> instance using the application and LambdaSharp configuration.
        /// </summary>
        /// <param name="configuration">The <see cref="IConfiguration"/> instance for the application.</param>
        /// <param name="lambdaSharpAppApiClient">The <see cref="LambdaSharpAppClient"/> instance for the application.</param>
        public LambdaSharpAppLoggerProvider(
            IConfiguration configuration,
            LambdaSharpAppClient lambdaSharpAppApiClient
            )
        {
            _configuration           = configuration ?? throw new ArgumentNullException(nameof(configuration));
            _lambdaSharpAppApiClient = lambdaSharpAppApiClient ?? throw new ArgumentNullException(nameof(lambdaSharpAppApiClient));
        }
예제 #2
0
        //--- Constructors ---

        /// <summary>
        /// Initializes a new <see cref="LambdaSharpAppLogger{T}"/> instance with <code>category</code> set to <code>typeof(T).FullName</code>.
        /// </summary>
        /// <param name="logLevel">Entry will be written on this level.</param>
        /// <param name="lambdaSharpAppApiClient">The <see cref="LambdaSharpAppClient"/> instance to use for logging.</param>
        public LambdaSharpAppLogger(LogLevel logLevel, LambdaSharpAppClient lambdaSharpAppApiClient) : base(logLevel, typeof(T).FullName, lambdaSharpAppApiClient)
        {
        }