How to create a new "Log Command", a command to see my logs.


I’ve searched and i didn’t finf anything in support area. I’d like to creat a new command to see my server logs like “sv getlog”. To be more clear, i have a command “sv start” to start my emulator, and “sv shut” to turn it off. When i start it with sv start, it loads the server and show me all the logs, when players login, do anything i see there… So imagine that have just turned on my computer and the server ir online, the only way i have to see my logs is turning it of and then turn ir on. But i don’t wanna turn it off then on to see my logs, cause players must wait it to load emulator and turn on, got it? I just wanna creat a new command to get my logs in real time with no needing of turn my server off then on, know hwat mean ? Sorry for my bad english and thanks for help!!

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

sv does have a status option that should give you what you want.

viewing the man page at: shows this option.

status Report the current status of the service, and the appendant log service if available, to standard output.