1 /*******************************************************************************
2 
3         Copyright:
4             Copyright (c) 2004 Kris Bell.
5             Some parts copyright (c) 2009-2016 dunnhumby Germany GmbH.
6             All rights reserved.
7 
8         License:
9             Tango Dual License: 3-Clause BSD License / Academic Free License v3.0.
10             See LICENSE_TANGO.txt for details.
11 
12         Version: Initial release: May 2004
13 
14         Authors: Kris Bell
15 
16 *******************************************************************************/
17 
18 module ocean.util.log.AppendConsole;
19 
20 import ocean.meta.types.Qualifiers;
21 
22 import ocean.io.Console;
23 
24 import ocean.io.model.IConduit;
25 
26 import ocean.util.log.Appender;
27 
28 /*******************************************************************************
29 
30         Appender for sending formatted output to the console
31 
32 *******************************************************************************/
33 
34 public class AppendConsole : AppendStream
35 {
36     /***********************************************************************
37 
38       Create with the given layout
39 
40      ***********************************************************************/
41 
42     this (Appender.Layout how = null)
43     {
44         super (Cerr.stream, true, how);
45     }
46 
47     /***********************************************************************
48 
49      Create with the given stream and layout
50 
51      ***********************************************************************/
52 
53     this ( OutputStream stream, bool flush = false, Appender.Layout how = null )
54     {
55         super (stream, flush, how);
56     }
57 
58     /***********************************************************************
59 
60       Return the name of this class
61 
62      ***********************************************************************/
63 
64     override istring name ()
65     {
66         return this.classinfo.name;
67     }
68 }