Glad to here you got it working.
By that do you mean it is breathing cyan, and you are now able to flash you code updates directly to it via the web IDE?
Looking at the question of logging a button press, you can create a counter varible in your code that incremments each time the button is pressed. However this will only count from your initial value (usually zero) each time the photon is power cycled as it get reset each time the the photon is booted.
There maybe a way of writing to non volitle ram on the Photon, and that will preserve the data between power cycles, but there are limits and technical considerations. I’ll allow someone else to share their thoughts on that approch.
Another way may be to add a SD shield to your project and use that as a ‘little hard drive’ and that might be able to preserve the data count between power cycles.
It is possible to use a python scrip running on a Raspbery PI, which can write to a text file and thus do the job of ‘logging data’. Basically the photon publishes the button count varible to the cloud, and the Raspberry PI monitors the cloud, collects the data and can write it to text file. If the raspbery PI gets power cycled it can read the last varible from the text file and continue adding to it. Thus the data is preserved. If you really want you can record data and time, and keep a very large log that way. Thats what I did for a GPS tracking project I’ve been working on. I have even been able to get the Python script on the PI to output a HTML file which pulls up the Google Maps trace of were the GPS unit had been. This has the advantage that the photon and Pi only need to be both on the internet. There actual geographic locations can be anywere on the net.
So there are a number of ways doing it.