Use EnumWindows instead of FindWindow

This commit is contained in:
Yaakov 2020-05-21 17:51:59 +10:00
parent e512889b17
commit fa24ae3022
3 changed files with 70 additions and 15 deletions

View file

@ -18,9 +18,15 @@ namespace Notepad.Extensions.Logging.FunctionalTest
var sp = sc.BuildServiceProvider();
var logger = sp.GetRequiredService<ILogger<Program>>();
logger.LogWarning("Here is a warning.");
logger.LogError(GetException(), "oh no!.");
logger.LogInformation("Here is some info.");
//logger.LogWarning("Here is a warning.");
//logger.LogError(GetException(), "oh no!.");
//logger.LogInformation("Here is some info.");
//logger.LogInformation("here, have a nice 😋 emoji.");
logger.LogInformation(@"💧 Paul
@paws101
Replying to
@yaakov_h
But does it handle emoji injection?.");
}
static Exception GetException()