Hi-performance text file logging for ASP and ASP.Net, VBScript, VBA, VB5/6, VB and C# applications. Lets you create daily/weekly/monthly log files with variable number of logged values and extra timing and performance info.
Performance notes and comparison with FileSystemObject and its use to do log files in ASP.
How to create and use LogFile class in ASP, VBS and VBA (VB, Excel, Word, ..)
|Close||Closes the log file.|
|Log||Lets you write variant number of values as one log line to the log file.|
|LogLine||Write string as one line to the log file.|
|Open||Opens the log file for write.|
|ArraySeparator||Separator of values in an array.|
|DateTimeFormat||Defines format for the DateTime fields.|
|Encode||Encoding of logged values. No encoding or URL encode.|
|FieldSeparator||Separator of logged values. This property is used to separate values on beggining of line and values from Log method.|
|FieldsHeaders||Description of additional fields in the log file.|
|FileBegin||Comment on the beggining of the log file.|
|LineBegin||Defines fields on a begin of the log line.|
|TemplateFileName||Full template for log path and file name. The template can contains special tags to specify filename for each day/week/month.|
|FileName||Full path and name of the current log file.|
|IsOpen||Returns True if the log file is open.|
|LocalDateTime||Specicifies if Logal or Global (GMT) date and time is logged.|
Dim LogFile 'Create LogFile object Set LogFile = CreateObject("ScriptUtils.LogFile") LogFile.TemplateFileName = "D:\LogFiles\LG%y%m%d.Log" 'Write one string to the log file LogFile.LogLine "some line to the log file." 'Write more values to the log file LogFile.Log "Some", "String", "Or", "Numeric", 25, "Values"
Huge ASP upload is easy to use, hi-performance ASP file upload component with progress bar indicator. This component lets you upload multiple files with size up to 4GB to a disk or a database along with another form fields. Huge ASP file upload is a most featured upload component on a market with competitive price and a great performance . The software has also a free version of asp upload with progress, called Pure asp upload , written in plain VBS, without components (so you do not need to install anything on server). This installation package contains also ScriptUtilities library. Script Utilities lets you create hi-performance log files , works with binary data , you can download multiple files with zip/arj compression, work with INI files and much more with the ASP utility.
LogFile is a COM class specially designed as a free-threaded, hi-performance logging object in Application scope of ASP/ASP.Net pages. It also works with other script engines in VB Script and JScript (ASP, ASP.Net, WSH, CHM, HTA), VB Net, Visual basic (VBA - VB 5, VB 6, Word, Excel, Access, …), C#, J#, C++, ASP, ASP.Net, Delphi and with T-SQL OLE functions - see Use ByteArray object article. You can also use the object in other programming environments with COM support, such is PowerBuilder.
Source code for LogFile is available within distribution license, please see License page for ASP file upload and ScriptUtilities.
© 1996 - 2015 Antonin Foller, Motobit Software | About, Contacts | (Find us on Google+)