Outstanding this works a treat, thanks ayende!

On Nov 7, 8:37 pm, "Ayende Rahien" <[EMAIL PROTECTED]> wrote:
> log_for com.foo.bar
> [Meta]
> public static MethodInvocationExpression log_for(ReferenceExpression re)
> {
>     return new MethodInvocationExpression( new
> ReferenceExpression("log_for"),
>           new StringLiteralExpression(re.ToCodeString());
>
> }
>
> public void log_for(string name)
> {
>
> }
>
> On Fri, Nov 7, 2008 at 10:33 PM, [EMAIL PROTECTED] <
>
>
>
> [EMAIL PROTECTED]> wrote:
>
> > I'm currently putting together a DSL using Rhino DSL to allow log4net
> > config and have hit a bit of snag to do with the syntax to use when
> > naming the log to use, it would be good to use the UseSymbolsStep to
> > be able to have something like:
>
> > log_for @myLog
>
> > However generally you would name the logs the same as your namespaces
> > so when you log you pass the type in GetLogger() this will cause
> > issues because having this:
>
> > log_for @com.foo.bar
>
> > Will convert the com to a string then try and evaluate foo as a member
> > reference, can anyone offer any guidance on this?
>
> > Or will be it be the case that I need to either use just standard
> > string:
>
> > log_for 'com.foo.bar'
>
> > or use some sort of different character for the dots:
>
> > log_for @com_foo_bar
>
> > Any help would be appreciated thanks :-)
>
> > Mike- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to