I get nothing from $logInfoYesod.
I have a building site, and when I start yesod devel, I do not see the output from the log lines that I inserted into my application. I also tried to create an application (using cabal) and run from the command line, but still there is no way out.
I got the impression that in development mode all levels of the log are displayed.
What am I doing wrong?
UPDATE
I built a "fresh" application using the latest version of Yesod (downloading with cabal just now). I changed getHomeRin the Home.hsfollowing way:
getHomeR :: Handler Html
getHomeR = do
$(logInfo) "Greeting from getHomeR"
(formWidget, formEnctype) <- generateFormPost sampleForm
let submission = Nothing :: Maybe (FileInfo, Text)
handlerName = "getHomeR" :: Text
defaultLayout $ do
aDomId <- newIdent
setTitle "Welcome To Yesod!"
$(widgetFile "homepage")
Then I ran cabal install && yesod devel. I connected to localhost:3000from my browser. I expected to see Greeting from getHomeRthe console output, but it was not there.
Haskell (2013.2.0.0), Homebrew OS X Mavericks.