ylu0105 commented on issue #278:
URL:
https://github.com/apache/logging-log4net/issues/278#issuecomment-3692511043
My code
``` csharp
using namespace log4net;
using namespace log4net::Repository;
ILoggerRepository^ repository = LogManager::GetRepository();
if (!repository->Configured)
{
String^ configPath =
Path::Combine(AppDomain::CurrentDomain->BaseDirectory, "log4net.config");
if (File::Exists(configPath))
{
Config::XmlConfigurator::ConfigureAndWatch(repository, gcnew
FileInfo(configPath));
}
else
{
Config::BasicConfigurator::Configure(repository);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]