Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
7.1k views
in .NET FTP by (160 points)
Modified the VB class example to module, here is the begining of the code, I'm trying to make a console app:

Module Module1

Sub Main(ByVal args() As String)
If args.Length <> 3 Then
Usage()
System.Environment.Exit(1)
End If
Dim log As Logger = Logger.GetLogger(GetType(Module1))
Dim host As String = args(0)
Dim user As String = args(1)
Dim password As String = args(2)
Logger.CurrentLevel = Level.ALL
Dim ftp As FTPClient = Nothing

and I get this message:

WARNING: 'edtftp.log.level' not found or invalid - logging switched off

I'm new to Visual Basic and to edtFTPnet.

Thanks,

3 Answers

0 votes
by (162k points)
You probably aren't using a configuration XML file by which the logger gets its default level.

You can ignore the warning, it is just letting you know that it can't find the setting.
0 votes
by (160 points)
Man this works great!.

Thanks, :D
0 votes
by
I have an XML configuration file with the appropriate entry in the solution containing the class that instantiates the FTP object. I don't get any warnings running dlls within that solution that call that class. However when I reference that class from another solution it displays the warning. My application works like this:

My main Program with FTP Class calls a dll using System.Reflection.Assembly that dll in turn calls a class in the main program via reference which instantiates new the FTP object.

I already tried putting another App.Config file in the project that builds the dll that gets called by System.Reflection.Assembly.

Is turning off the console warning via hardcoding it my only option so that I won't recieve a warning?

Categories

...