Shame : aren't allowed in sys::Log#get for then you could do something like:
:
Log log := Log.get(Acme#.qname)
because
Log log := Log.get(Acme#.pod.name + "." + Acme#.name)
is quite tiresome.
How about a new factory method on Log for sys::Type to do the above? Then you could write:
Log
sys::Type
Log log := Log.getForType(Acme#)
We we do have Pod.log which for me is typical granuality of logging so that you can do:
Pod.log
Acme#.pod.log
Yeah, I was aware of Pod.log, I was just thinking a Log.getForType (or now you mention it - Type.log) would give more granularity.
Log.getForType
Type.log
Login or Signup to reply.
SlimerDude Tue 12 Mar 2013
Shame
:
aren't allowed in sys::Log#get for then you could do something like:because
is quite tiresome.
How about a new factory method on
Log
forsys::Type
to do the above? Then you could write:brian Tue 12 Mar 2013
We we do have
Pod.log
which for me is typical granuality of logging so that you can do:SlimerDude Wed 13 Mar 2013
Yeah, I was aware of
Pod.log
, I was just thinking aLog.getForType
(or now you mention it -Type.log
) would give more granularity.