Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class TestController : Controller
- {
- private readonly ILogger _logger;
- public TestController(ILogger logger)
- {
- _logger = logger;
- }
- public IActionResult Register()
- {
- //Some controller logic...
- _logger.LogInformation("User named {0} created with id: {1}", user.Name, user.Id);
- }
- }
Add Comment
Please, Sign In to add comment