AspLog.InitializeWithDefaultsSinceNoConfigExists Método

Definição

Cria um novo FileLogTraceListener e adiciona à coleção Listeners.Creates a new FileLogTraceListener and adds it to the Listeners collection.

protected public:
 override void InitializeWithDefaultsSinceNoConfigExists();
protected internal override void InitializeWithDefaultsSinceNoConfigExists ();
override this.InitializeWithDefaultsSinceNoConfigExists : unit -> unit
Protected Friend Overrides Sub InitializeWithDefaultsSinceNoConfigExists ()

Comentários

Esse método cria um novo FileLogTraceListener , define seu nome como e o FileLog configura para registrar mensagens com o nível de severidade Information e maior.This method creates a new FileLogTraceListener, sets its name to FileLog, and configures it to log messages with severity level Information and greater. O novo FileLogTraceListener objeto é então adicionado à Listeners coleção.The new FileLogTraceListener object is then added to the Listeners collection.

O Log chamará o método se a TraceSource propriedade não tiver sido configurada.The Log calls the method if the TraceSource property has not been configured. A origem do rastreamento pode ser configurada no arquivo de configuração do aplicativo.The trace source can be configured in the application's configuration file.

Aplica-se a

Confira também