Java API for extended non-intrusive trace logging