[Developers] Prototypes and Implementations: New API CCTK_Log

Erik Schnetter schnetter at aei.mpg.de
Tue Jun 7 10:38:47 CDT 2005


On Tuesday 07 June 2005 17:26, Jian Tao wrote:
> Hi,
>
> No matter how useful it will be, here comes CCTK_Log.  ;)

Thanks!

> [Intro]
>
> Following the discussion about CCTK_Announce proposed by Eric last
> week, Tom suggested a new CCTK_Log. I am trying to implement this API
> in the same way as cctk_Info and cctk_Warn. A sample thorn called
> SimpleLog can be found at
> cvs.cct.lsu.edu:/Frameworks/Arrangements/CCTDevelopment/SimpleLog
>
> [Prototypes]
>
> #define CCTK_DECLARE_LOG_CALLBACK_ARGS \
>         int level, \
>         const char *tag, \
>         const char *message, \
>         void *data
>
> #define CCTKi_DECLARE_LOG_CALLBACKSCALL_ARGS \
>         int level, \
>         const char *tag, \
>         const char *message

I would also like to have

	const char * thornname

and maybe also

	const char * file
	int line

-erik

-- 
Erik Schnetter <schnetter at aei.mpg.de>   http://www.aei.mpg.de/~eschnett/

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/developers/attachments/20050607/0e616c98/attachment-0002.bin 


More information about the Developers mailing list