From Oracle Magazine Tip for Week of June 26, 2006:
CREATE OR REPLACE TRIGGER ON_LOGON_SCOTT
AFTER LOGON ON DATABASE
WHEN ( USER = 'SCOTT' )
execute immediate 'alter session set events ''10046 trace name context forever, level 12''';
WHEN OTHERS THEN
Of course, don't forget to disable it after!