summaryrefslogtreecommitdiff
path: root/slips/src/app/Marina/Infrastructure/Logging/Interfaces
diff options
context:
space:
mode:
authormokhan <mokhan@da190166-9cfc-4ee1-ae03-434a172be219>2009-02-21 21:44:27 +0000
committermokhan <mokhan@da190166-9cfc-4ee1-ae03-434a172be219>2009-02-21 21:44:27 +0000
commit1dfdccb8118aeaa3cd844ac8de2a672c93312166 (patch)
tree4b19e7f816ab1019f180a46b68572af4b66fe4bc /slips/src/app/Marina/Infrastructure/Logging/Interfaces
parent42d66bcab8262c7b8b2452615df535e694a3ec1c (diff)
git-svn-id: http://svn.xp-dev.com/svn/mokhan-sait@2 da190166-9cfc-4ee1-ae03-434a172be219
Diffstat (limited to 'slips/src/app/Marina/Infrastructure/Logging/Interfaces')
-rw-r--r--slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILog.cs7
-rw-r--r--slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILogFactory.cs7
-rw-r--r--slips/src/app/Marina/Infrastructure/Logging/Interfaces/Log.cs14
3 files changed, 28 insertions, 0 deletions
diff --git a/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILog.cs b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILog.cs
new file mode 100644
index 0000000..37d91d8
--- /dev/null
+++ b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILog.cs
@@ -0,0 +1,7 @@
+namespace Marina.Infrastructure.Logging.Interfaces {
+ public interface ILog {
+ void Informational( string message );
+ void Informational( string messageFormat, params object[] args );
+ void CriticalError( string messageFormat, params object[] args );
+ }
+} \ No newline at end of file
diff --git a/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILogFactory.cs b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILogFactory.cs
new file mode 100644
index 0000000..0c71caf
--- /dev/null
+++ b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/ILogFactory.cs
@@ -0,0 +1,7 @@
+using System;
+
+namespace Marina.Infrastructure.Logging.Interfaces {
+ public interface ILogFactory {
+ ILog CreateFor( Type type );
+ }
+} \ No newline at end of file
diff --git a/slips/src/app/Marina/Infrastructure/Logging/Interfaces/Log.cs b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/Log.cs
new file mode 100644
index 0000000..c8dae76
--- /dev/null
+++ b/slips/src/app/Marina/Infrastructure/Logging/Interfaces/Log.cs
@@ -0,0 +1,14 @@
+using System;
+using Marina.Infrastructure.Container;
+
+namespace Marina.Infrastructure.Logging.Interfaces {
+ public class Log {
+ public static ILog For( object itemThatRequiresLoggingServices ) {
+ return For( itemThatRequiresLoggingServices.GetType( ) );
+ }
+
+ public static ILog For( Type type ) {
+ return Resolve.DependencyFor< ILogFactory >( ).CreateFor( type );
+ }
+ }
+} \ No newline at end of file