Mercurial > projects > ldc
comparison tango/tango/util/log/Configurator.d @ 132:1700239cab2e trunk
[svn r136] MAJOR UNSTABLE UPDATE!!!
Initial commit after moving to Tango instead of Phobos.
Lots of bugfixes...
This build is not suitable for most things.
author | lindquist |
---|---|
date | Fri, 11 Jan 2008 17:57:40 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:5825d48b27d1 | 132:1700239cab2e |
---|---|
1 /******************************************************************************* | |
2 | |
3 copyright: Copyright (c) 2004 Kris Bell. All rights reserved | |
4 | |
5 license: BSD style: $(LICENSE) | |
6 | |
7 version: Initial release: May 2004 | |
8 | |
9 author: Kris | |
10 | |
11 *******************************************************************************/ | |
12 | |
13 module tango.util.log.Configurator; | |
14 | |
15 private import tango.util.log.Log, | |
16 tango.util.log.EventLayout, | |
17 tango.util.log.ConsoleAppender; | |
18 | |
19 /******************************************************************************* | |
20 | |
21 Basic utility for initializing the basic behaviour of the | |
22 default logging hierarchy. | |
23 | |
24 Adds a default StdioAppender, with a SimpleTimerLayout, to | |
25 the root node, and set the activity level to be everything | |
26 enabled. | |
27 | |
28 *******************************************************************************/ | |
29 | |
30 static this() | |
31 { | |
32 Log.getRootLogger.addAppender(new ConsoleAppender(new SimpleTimerLayout)); | |
33 } | |
34 | |
35 | |
36 | |
37 /******************************************************************************* | |
38 | |
39 *******************************************************************************/ | |
40 | |
41 public class Configurator | |
42 { | |
43 /*********************************************************************** | |
44 | |
45 No longer required. Just import this module instead | |
46 | |
47 ***********************************************************************/ | |
48 | |
49 deprecated static void opCall () | |
50 { | |
51 } | |
52 } | |
53 |