This isn't exactly what we want. The '-d' is passed with the loglevel specified. For example '-d DEBUG' and therefore the logging level output should be set to DEBUG.