• 0
Sign in to follow this  
Foob

Console Logging

Question

Hello,

I've already asked on Discord however I wasn't successful so I guess I'll try it here. Hehe!

I'm trying to log map_server messages via console_msg_log which are shown below.

//Makes server log selected message types to a file in the /log/ folder
//1: Log Warning Messages
//2: Log Error and SQL Error messages.
//4: Log Debug Messages
//Example: "console_msg_log: 7" logs all 3 kinds
//Messages logged by this overrides console_silent setting
console_msg_log: 7

// File path to store the console messages above
console_log_filepath: ./log/map-msg_log.log

//Makes server output more silent by omitting certain types of messages:
//1: Hide Information messages
//2: Hide Status messages
//4: Hide Notice Messages
//8: Hide Warning Messages
//16: Hide Error and SQL Error messages.
//32: Hide Debug Messages
//Example: "console_silent: 7" Hides information, status and notice messages (1+2+4)
console_silent: 0

// Console Commands
// Allow for console commands to be used on/off
// This prevents usage of >& log.file
console: on

Created the log folder under the master/rathena folder to follow the filepath.

image.png.97ffe0a0c35cc88b88151b21e46e4fe4.png

However, upon running the server. If I receive any debug messages or error, I cannot see it in log folder.

What am I missing? Thanks in advance!

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Maybe the server is started from the user which doesn't have the rights to write to the folder "log". You should check it.

Edited by Functor

Share this post


Link to post
Share on other sites
  • 0
5 hours ago, Functor said:

Maybe the server is started from the user which doesn't have the rights to write to the folder "log". You should check it.

Probably but I have set the rights for the user correctly.

Follow-up question.

Scenario:

user A (rathena444): starts the server ./athena-start and the folder is owned by the user and such.

Who will write the logs? will it be rathena444? or system?

Share this post


Link to post
Share on other sites
  • 0

Solved. I was looking at different at different logs. There are 2 logs that could origin which is the char and map logs. I only enabled the map logs and all errors were in the char. Lol. Thanks!

  • Upvote 1

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.   Paste as plain text instead

  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...
Sign in to follow this