LogEx plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
mNo edit summary
mNo edit summary
Line 46: Line 46:


== Notes ==
== Notes ==
The LogEs::AddFile function is especially usefull in combination with execution of a console application (like [[ExecDos plug-in]])
The LogEx::AddFile function is especially usefull in combination with execution of a console application (like [[ExecDos plug-in]])


== Version History ==
== Version History ==

Revision as of 00:33, 13 February 2007

Author: jpderuiter (talk, contrib)


Links

Exe.gif [] (77 KB)

Description

Version: 0.1.

LogEx is a logging plugin. It allows to append a string to a logfile and show this string in the status listbox and/or the status bar (like DetailPrint)

How To Use

The most practical way to use this plugin is disabling the PluginUnload. To do this call "SetPluginUnload alwaysoff" in all functions and sections where you use this plugin. ...

Init DLL Function

LogEx::Init /NOUNLOAD FileName
FileName
Log file name. The file will be opened with FILE_APPEND_DATA, so evt. old data will be left untouched.

Write DLL Function

LogEx::Write /NOUNLOAD LogString [bWriteToStatusList] [bWriteToStatusBar]
LogString
String to write to the logfile.
bWriteToStatusList
If equal to true, adds the string to the Status Listbox.
bWriteToStatusBar
If equal to true, adds the string to the Status Bar.

AddFile DLL Function

LogEx::AddFile /NOUNLOAD FileName Prefix
FileName
File to add to the logfile.
Prefix
Prefix to add at the beginning of each new line.

Notes

The LogEx::AddFile function is especially usefull in combination with execution of a console application (like ExecDos plug-in)

Version History

[Initial version: 2007-02-12] Initial version.

JP de Ruiter