Sorry for wrong posting!
I have got logger instance in App.d
void main()
{
...
FileLogger fLogger = new FileLogger("ErrorLog.txt");
foo();
}
utils.d:
foo()
{
// I need logging here
}
Also I have file utils.d that include stand-alone functions that
is not in classes. In one of them I need to implement logging.
What is the best way to do it. I see only two way -- create new
Loggining instance. And second -- to import App.d as module,
because without importing I would not able to see Logger instance.
But both of this way is look ugly. Is there any best solution?