Mercurial > projects > mde
comparison mde/content/ContentLoader.d @ 150:42fb97d9ff9e
Fix for non-debug builds.
ContentLoader now always has a logger.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 04 Apr 2009 11:59:27 +0200 |
parents | 9f035cd139c6 |
children | e45226d3deae |
comparison
equal
deleted
inserted
replaced
149:1125ba603af6 | 150:42fb97d9ff9e |
---|---|
27 import mde.content.AStringContent; | 27 import mde.content.AStringContent; |
28 import mde.content.ValueCache; | 28 import mde.content.ValueCache; |
29 import mde.file.paths; // PRIORITY enum | 29 import mde.file.paths; // PRIORITY enum |
30 import mde.content.Translation; | 30 import mde.content.Translation; |
31 | 31 |
32 debug { | |
33 import tango.util.log.Log : Log, Logger; | 32 import tango.util.log.Log : Log, Logger; |
34 private Logger logger; | 33 private Logger logger; |
35 static this () { | 34 static this () { |
36 logger = Log.getLogger ("mde.gui.content.ContentLoader"); | 35 logger = Log.getLogger ("mde.gui.content.ContentLoader"); |
37 } | |
38 } | 36 } |
39 | 37 |
40 /// Namespace for the module's functionality | 38 /// Namespace for the module's functionality |
41 struct ContentLoader { | 39 struct ContentLoader { |
42 private static { // Templates | 40 private static { // Templates |