You should not directly ask for an ILogger
(although the error message could be a little bit nicer) but you should resolve an ILoggerFactory
and from that you can ask for an ILogger
_kernel = new StandardKernel();
ILoggerFactory loggerFactory = _kernel.Get<ILoggerFactory>();
ILogger logger = loggerFactory.GetCurrentClassLogger();
See also the documentation Request a logger yourself section.