Zooflow: Add Base class to Zooflow Module
This commit is contained in:
21
Modules.ZooFlow/Base/BaseClass.vb
Normal file
21
Modules.ZooFlow/Base/BaseClass.vb
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
Imports DigitalData.Modules.Logging
|
||||||
|
|
||||||
|
Namespace Base
|
||||||
|
''' <summary>
|
||||||
|
''' Base Class which supplies a Logger/LogConfig
|
||||||
|
''' </summary>
|
||||||
|
Public Class BaseClass
|
||||||
|
Protected LogConfig As LogConfig
|
||||||
|
Protected Logger As Logger
|
||||||
|
|
||||||
|
Public Sub New(LogConfig As LogConfig)
|
||||||
|
Dim oClassName = Me.GetType().Name
|
||||||
|
|
||||||
|
Me.LogConfig = LogConfig
|
||||||
|
Me.Logger = LogConfig.GetLogger(oClassName)
|
||||||
|
End Sub
|
||||||
|
End Class
|
||||||
|
End Namespace
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@
|
|||||||
<Import Include="System.Threading.Tasks" />
|
<Import Include="System.Threading.Tasks" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Base\BaseClass.vb" />
|
||||||
<Compile Include="Constants.vb" />
|
<Compile Include="Constants.vb" />
|
||||||
<Compile Include="Environment.vb" />
|
<Compile Include="Environment.vb" />
|
||||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||||
|
|||||||
Reference in New Issue
Block a user