On Tuesday, 13 August 2013 at 17:14:53 UTC, evilrat wrote:
module log; mixin template makeLogger( params,,, name ) { Logger logger; static this () { .. logger initialization... } }is it necessary use multiple loggers? maybe you should move ur Logger instance to module scope(log module) and just handle log sources some other way(i.e. add source string mapping in log module)? because i mean this clash is just due to multiple instantions of this template
omg sorry, i'm an idiot. i should stop posting stupud things when i already going to sleep. sorry, ur problem is circular dependencies, you import modules with static ctor which imports each other. to avoid this, remove module ctor or place it in log module for good.
