Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrument Client with Better Logging Capabilities #127

Open
hawkerm opened this issue May 20, 2016 · 3 comments
Open

Instrument Client with Better Logging Capabilities #127

hawkerm opened this issue May 20, 2016 · 3 comments
Assignees

Comments

@hawkerm
Copy link
Member

hawkerm commented May 20, 2016

We should have a better idea when things fail and output that to the log, especially in the sending socket.

Would be good to have timestamps too.

@hawkerm
Copy link
Member Author

hawkerm commented May 20, 2016

Does the Java logger have a format command? It'd be helpful if it output in a similar format to the server as I want to write a parser for that format.

@wortzmanb
Copy link

wortzmanb commented May 20, 2016

Java has printf, which I can use to format. Do you have something showing the server format?

@hawkerm
Copy link
Member Author

hawkerm commented May 21, 2016

logformat='%(asctime)s|%(relativeCreated)d|%(levelname)s|%(threadName)s|%(module)s|%(lineno)d|%(funcName)s|%(message)s'

2016-05-16 23:34:35,513|592|INFO|MainThread|SBA_Serv|71|<module>|Starting Space Battle Arena v1.2.0.1117

  • asctime = timestamp
  • relativeCreated = time since process start (in milliseconds)
  • levelname = log level (DEBUG, INFO, ERROR)
  • threadName = name of the thread printing the message
  • module = name of class printing the message
  • lineno = line of the statement of the log message
  • funcname = name of the function printing the message
  • message = message itself, all object ids are prepended with '#', we should have a char for netids maybe?

wortzmanb pushed a commit that referenced this issue May 25, 2016
Fix issue with BrakeCommand in fix for #123.

First part of fix for #127, add log message if socket is closed when
sending.
@hawkerm hawkerm modified the milestone: v1.2 - Hunger Baubles Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants