[nem-bug] [Nemerle 0000542]: Logging macros should allow various logging functions to be used (and other improvements)

feedback at nemerle.org feedback at nemerle.org
Wed Oct 19 22:16:07 CEST 2005


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=542> 
======================================================================
Reported By:                nazgul
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   542
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             10-02-2005 12:01 CEST
Last Modified:              10-19-2005 22:16 CEST
======================================================================
Summary:                    Logging macros should allow various logging
functions to be used (and other improvements)
Description: 
The first straightforward method of choosing one should be the used log
variable:

[LogFunction (INFO => log4net_category.info, DEBUG =>
log4net_category.debug, ...)

Another possibility to achieve similar effect is to pass the used variable
as first parameter of logging function (as string). This improvement and
others would  be possible to do easily by introducing local variables to
be used by logging function (just like we do in Trace macro):

[LogFunction (my_logg (_LOG_VARIABLE, _file, _line, _str)]

but there is a design issue, that currently LogFunction expects...
function, not  its call expression.

I would like to implement the better version for the next release, but I
need some comments to use the final, superior design :-)
======================================================================

----------------------------------------------------------------------
 nazgul - 10-19-05 22:16 
----------------------------------------------------------------------
Fixed on trunk (r5831).
http://nemerle.org/Logging_macros is updated to reflect new features.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
10-02-05 12:01 nazgul         New Issue                                    
10-03-05 19:34 nazgul         Status                   new => confirmed    
10-19-05 22:16 nazgul         Status                   confirmed => resolved
10-19-05 22:16 nazgul         Resolution               open => fixed       
10-19-05 22:16 nazgul         Assigned To               => nazgul          
10-19-05 22:16 nazgul         Note Added: 0000998                          
======================================================================




More information about the bugs mailing list