Logbox - Extra Info

Hi all,

I'm still learning the ins and outs of logbox and was hoping someone could provide advice on the best way to handle this logging scenario.

In my handlers I have am using ValidateThis to validate incoming data. When this validation occurs I want to be able to log a warning that a validation error has occured but I also want to log, the validation Failure messages to know what errors occured, as well as what data was in RC, and some of the CGI information (i.e was the request from a web browser, iphone, blackberry, etc).

I know it's possible to pass in data within the extra info argument. In order to pass all of the above structures, would I just create my own structure, and append each of the above structures to form the extra info structure?

Thanks.

Nolan

You can do that, create your own structure and it will be persisted in the logging information.
Or you can create an object that implemetns a $toString() method.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

http://wiki.coldbox.org/wiki/LogBox.cfm#.24toString%28%29_and_ExtraInfo_Argument

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Great. Thanks Luis, I’ll take a look at the link in the second email for $toString()

Thanks.

Nolan