can anyone help me in this, i am trying to get Solana logs on vs code terminal but it is not showing.i tried with this command "solana logs --url localhost" but i did not get.may i know what is the reason for it ?

1 Answer 1


For logs

You can pass the program address as an argument like this solana logs [FLAGS] [OPTIONS] [ADDRESS] which is

solana logs --url localhost PROGRAM_ADDRESS

For more details, you can refer to this page.

  • still it is not showing.i tried it already
    – poojitha
    Nov 16, 2022 at 9:52
  • @poojitha are you deploying to the local cluster? Nov 16, 2022 at 9:57
  • yes i am deploying to the local cluster
    – poojitha
    Nov 22, 2022 at 8:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.