Added working example of using anonymous functions for lazy loading with monolog.