
It depends where you live. Are you in the UK. I asked our dog Warden what position they took (have one dog hating neighbour). Was told that when they got a complaint they asked the complainant to keep a diary for three weeks. They would only take action if the barking was for excessive periods both day and night. It would have to be more than what could be considered reasonable. They accept that dogs bark when the postman or visitors called, and as long as this isn't for prolonged periods would take no further action.
If you are in rented accomodation then you should check the terms of your lease to see what covenants there are regarding pets and neighbour nuisance.