Прочетете на английски

Споделяне чрез


LoggerFactory.CreateLogger(String) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Creates an ILogger with the given categoryName.

C#
public Microsoft.Extensions.Logging.ILogger CreateLogger(string categoryName);

Parameters

categoryName
String

The category name for messages produced by the logger.

Returns

The ILogger that was created.

Implements

Applies to

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided)