Jump to content
  • 0
NekoNova

Monitoring logs

Question

Okay,

 

this is probably a silly question, but we have our server running.

When I start the server through SSH, I see the log output in the console.

 

Now I reconnect the SSH; but I'm not getting any log output anymore in console.

How can I get the logs streamed again to my console?

 

I would like to see the errors being produced by scripts for debugging.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

As jaBote stated, download and install screen:

 

sudo apt-get install screen

 

Once it's installed, create a new screen for each zone:

 

screen -S logincd path/to/server/files./login-server

Detach from your first screen by pressing Ctrl A D simultaneously, then create a new one for your char and map zones, repeating a similar process to the one I showed. If you've done it correctly, you'll be able to resume the screens for each zone. To resume the map zone's screen, input this:

 

screen -S map

 

The same method applies to other zones as well. To terminate (shut down) a zone, press Ctrl C simultaneously.

Share this post


Link to post
Share on other sites
  • 0

You usually want to debug on a test server.

 

Can't be much of a help right now because I'm on my cellphone, but try installing and applying screen on your server (apt-get install screen) and run your server on screens for attaching later.

 

Or google something similar to "output of a program to a file linux", I'm getting very good results on that one.

 

Sorry I can't be of much help right now.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.