I suppose I can defines these 3 macros in the main library:

#define EXALT_LOG_WARN(...) EINA_LOG_DOM_WARN(EXALT_LOG_DOMAIN, __VA_ARGS__)
#define EXALT_LOG_CRIT(...) EINA_LOG_DOM_CRIT(EXALT_LOG_DOMAIN, __VA_ARGS__)
#define EXALT_LOG_INFO(...) EINA_LOG_DOM_INFO(EXALT_LOG_DOMAIN, __VA_ARGS__)

2009/9/1 Gustavo Sverzut Barbieri <barbi...@profusion.mobi>

> On Tue, Sep 1, 2009 at 4:33 PM, Enlightenment
> SVN<no-re...@enlightenment.org> wrote:
> > Log:
> >  Exalt: use eina_log
> > -            print_error(__FILE__,__func__, __LINE__,"Can not create the
> log file: %s\n",EXALTD_LOGFILE);
> > +            EINA_LOG_DOM_WARN(EXALT_LOG_DOMAIN,"Can not create the log
> file: %s\n",EXALTD_LOGFILE);
>
> as I said in my other mail, this is not the best practice, I'd
> recommend all users of eina_log to define their own 3 letter macros
> doing the proper code. It will make code smaller and more portable if
> we need further changes:
>
> #define WRN(...) EINA_LOG_DOM_WARN(EXALT_LOG_DOMAIN, __VA_ARGS__)
>
> then:
>
> WRN("Can not create the log file: %s\n",EXALTD_LOGFILE);
>
> you can use WARN if you wish. If you're writing a library, then just
> define these macros on your PRIVATE header so your WRN/DBG do not
> clash with user's definitions.
>
> --
> Gustavo Sverzut Barbieri
> http://profusion.mobi embedded systems
> --------------------------------------
> MSN: barbi...@gmail.com
> Skype: gsbarbieri
> Mobile: +55 (19) 9225-2202
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Regards.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to