platformsh / legacy-cli

This is the legacy version of Platform.sh's command-line interface. The new version is at: https://github.com/platformsh/cli
https://docs.platform.sh/administration/cli.html
MIT License
224 stars 121 forks source link

Plaform logs command #121

Closed OriPekelman closed 8 years ago

OriPekelman commented 9 years ago

I am not totally sold out on the usefullness of this, but we might want to replicate the "heroku logs" command. Maybe after we get the glorious unified logging... Otherwise this is just running tailf through ssh on app server logs..

This kind of also brings us back to the "plugin" architecture. This is useful to some people.. but will pollute the "platform list" with yet another command, and it is already very dense. Maybe with something like git sub commands

damz commented 9 years ago

Yes, after the unified logging architecture, please.

And yes, we might want to rework the help command, the default provided by symfony/console doesn't scale very well.

OriPekelman commented 9 years ago

it is quite easy to overload / make dynamic changes.. to show stuff more contextually relevant .. see for example my nice colorizing at https://github.com/OriPekelman/platformsh-cli/blob/master/src/Command/PlatformCommand.php#L502

Kazanir commented 9 years ago

I made a separate issue for #122 and we'll leave this open for logging

pjcdawkins commented 9 years ago

By the way it is now possible to do platform ssh <command>, e.g.

platform ssh tail -f /var/log/access.log
pjcdawkins commented 8 years ago

Not quite the same as heroku logs, but there is now a platform logs command (since v2.12.0)