* Filters/FilterPackage.cs, Filters/FilterRPM.cs,
[beagle.git] / Util / Logger.cs
blobc26a26069385d0e964d6cdd86f336c19d36ad794
1 //
2 // Logger.cs
3 //
4 // Copyright (C) 2004-2005 Novell, Inc.
5 //
7 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
15 // The above copyright notice and this permission notice shall be included in all
16 // copies or substantial portions of the Software.
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 // SOFTWARE.
27 using System;
28 using System.Collections;
29 using System.Text;
30 using System.IO;
31 using System.Diagnostics;
33 namespace Beagle.Util {
35 public class Logger {
37 public Logger () { }
39 static Logger static_logger = new Logger ();
41 static public Logger Log { get { return static_logger; } }
43 static public Logger Get (string old_style_log_name) { return static_logger; }
45 /////////////////////////////////////////////////////////////////////////////////////////
47 public void Debug (string message, params object [] args)
49 Beagle.Util.Log.Debug (message, args);
52 public void Debug (Exception ex, string message, params object [] args)
54 Beagle.Util.Log.Debug (ex, message, args);
57 public void Debug (Exception ex)
59 Beagle.Util.Log.Debug (ex);
62 public void Info (string message, params object [] args)
64 Beagle.Util.Log.Info (message, args);
67 public void Info (Exception ex, string message, params object [] args)
69 Beagle.Util.Log.Info (ex, message, args);
72 public void Info (Exception ex)
74 Beagle.Util.Log.Info (ex);
77 public void Warn (string message, params object [] args)
79 Beagle.Util.Log.Warn (message, args);
82 public void Warn (Exception ex, string message, params object [] args)
84 Beagle.Util.Log.Warn (ex, message, args);
87 public void Warn (Exception ex)
89 Beagle.Util.Log.Warn (ex);
92 public void Error (string message, params object [] args)
94 Beagle.Util.Log.Error (message, args);
97 public void Error (Exception ex, string message, params object [] args)
99 Beagle.Util.Log.Error (ex, message, args);
102 public void Error (Exception ex)
104 Beagle.Util.Log.Error (ex);