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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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