I have about 20 classes that I deploy to production via ant.

Some of my test classes fail.

I want to view the debug logs but I cannot find the way to look at the logs of my ant deployment.

Any help on how to do that?

  • try running command ant -v while validation where v stands for verbose (Debug Level). – Rohit Mourya Dec 18 '17 at 12:33
  • Thanks @RohitMourya I have done that, now I can see logs, but only from triggers and not from the classes that my tests triggered, do you know how can I see my classes logs? – Itai Shmida Dec 18 '17 at 13:02
  • This should have solved your problem. However, you can also look into developer console/ Setup->Debug logs; I'm not sure about this. Give it a try. – Rohit Mourya Dec 18 '17 at 13:24
  • I have tried to find all of this in the debug logs but couldn't - not in the dev console and not in the setup/debug logs page, although over there you need to add a user to follow, so maybe this has something to define. Th -v worked as now I see logs but not of all the classes - I see only trigger logs – Itai Shmida Dec 18 '17 at 13:35
  • you'll need to turn on the debug logs for the user the deploy is running as. Additionally, if you don't need full debug logs and really just need some extra info, over in setup you can see deployment status and get some info there. – William Young Dec 19 '17 at 2:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.