My Life As A Blog

Consoling nspectre

leave a comment »

The new version of nspectre (did I mention that you can get it here?) contains a console application called, after some considerable thought, NSpectre.Console. The purpose of this application is to provide the means to process an nspectre configuration file without having to write any code. It’s fairly simple to use. Open a command prompt in the folder where any required dlls (required in order to process the configuration file) are located (this is usually the bin directory of the project whose nspectre configuration file you want to process) and call NSpectre.Console (if you haven’t added the path to NSpectre.Console to your system path variable, then you’ll need the full path.) NSpectre.Console takes the following switches:

-config used to specify the configuration file

-logOutput used to indicate whether or not to output a log file. The logger will be set to Debug level output.

-logFile the name of the output file (the default is Output.log in the current folder.)

If you wanted a log file with the default name, the command would look like this:

NSpectre.Console -config “Your config file” -logOutput

It’s worth noting that the current version of NSpectre.Console only supports version 0.8.1 of nspectre.


Written by remark

October 16, 2006 at 9:48 pm

Posted in nspectre

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: