Can you give us some more specs on your G4?
What processor type, and amount of RAM?
Logic is meant to be only Intel compatible but it does work on some PPC machines depending on the spec of it.
If you give us some more details, we can let you know if it will work on your Mac. Also it will be advisable for you to upgrade to 10.5.8 for better performance with Logic 9.