Location: Symbol Reference > Classes > TJwLogWriter Class > TJwLogWriter Methods > TJwLogWriter.AddAttributes Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwLogWriter.AddAttributes Method
Pascal
class procedure AddAttributes(var Attr: TJwXMLAttributes; const ClassName: TJwString; const MethodName: TJwString; const FileName: TJwString); virtual;
Parameters 
Description 
var Attr: TJwXMLAttributes 
receives an TJwXMLAttributes where the new attribute is added to the end  
const ClassName: TJwString 
defines the classname where the method is located. Can be empty if the method is not in a class. In this case the attribute is ignored.  
const MethodName: TJwString 
defines the name of the method or function  
const FileName: TJwString 
defines the filename where the method is located. The filename can contain a source line at the end of string succeeded by a colon. 

AddAttributes is a helper function that adds source code location attribute like classname, methodname and filename from where the log is made.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!