Hi Scott,
this is what i use for that (not a plugin, just a method):
Sub WriteLog(Value As String)
Dim d As new date 'vandaag
Dim tos As TextOutputStream
Dim filename As String
filename = d.SQLDate+".log"
if LogFolder.Child(filename).Exists then
tos = TextOutputStream.Append(LogFolder.Child(filename))
else
tos = TextOutputStream.Create(LogFolder.Child(filename))
end if
tos.WriteLine App.ApplicationIdentifier + " <!> " + Value
tos.Close()
End Sub
copy the code and paste into a module, then your ok.
Kind Regards,
Met vriendelijke groet,
Derk Jochems - SWORT
The Netherlands
Op 22 nov. 2011, om 22:13 heeft scott het volgende geschreven:
> All,
>
> coming from other languages I was able to specify which logfile to log
> to. Defaults were whatever the system logfile (or eventviewer in
> windows) used. I would kill for an extension to System.DebugLog to
> specify a logfile to log to.
>
> currently it is:
> system.debuglog "message"
>
> what I would like is:
>
> system.debuglog( "message", folderitemPointingToLogfile )
>
> or
>
> system.debuglog( folderitemPointingToLogfile, "message" )
>
> instead of a folderitem but a shellpath or absolutepath is fine with me.
>
> thanks
> Scott
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>