Yeah, I agree, tricky stuff. According to this: http://cakephp.lighthouseapp.com/projects/42648/tickets/3264 it was a bug, but for me it still doesn't work. Take a look.
On Saturday, 8 September 2012 18:54:48 UTC+1, chronon wrote: > > I'm struggling with getting logging scopes working (CakePHP 2.2.2). > Copying the example in > docs<http://book.cakephp.org/2.0/en/core-libraries/logging.html#logging-scopes> > doesn't > seem to work as it should: > > // configure tmp/logs/shops.log to receive all types (log levels), but only// > those with `orders` and `payments` scopeCakeLog::config('shops', array( > 'engine' => 'FileLog', > 'types' => array(), > 'scopes' => array('orders', 'payments'), > 'file' => 'shops.log',)); > // configure tmp/logs/payments.log to receive all types, but only// those > with `payments` scopeCakeLog::config('shops', array( > 'engine' => 'FileLog', > 'types' => array(), > 'scopes' => array('payments'), > 'file' => 'payments.log',)); > CakeLog::warning('this gets written only to shops.log', > 'orders');CakeLog::warning('this gets written to both shops.log and > payments.log', 'payments');CakeLog::warning('this gets written to both > shops.log and payments.log', 'unknown'); > > All I get is payments.log with all three messages and no shops.log. Any > ideas? > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
