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

Clean up logging #26

Open
hashsploit opened this issue Dec 18, 2020 · 0 comments
Open

Clean up logging #26

hashsploit opened this issue Dec 18, 2020 · 0 comments
Labels
enhancement New feature or request low-priority Low priority request

Comments

@hashsploit
Copy link
Owner

Logging needs to be cleaned up, proposed standard:

  • FINEST - Hex data, client ip address.
  • FINER - packet disassembly and breakdown of packets.
  • FINE - debug info such as worlds being created, ids, auths, ip addresses, players.
  • INFO - informational messages, logging in, auth, chat, game creation, end report, ip addresses, players.
  • WARN - warnings, not death, should be looked into or blocked if it's just bad clients.
  • SEVERE - errors, bad stuff that needs to be fixed soon.

Example:

12:34:56.000 [FINEST] Raw data from 127.0.0.1:8080:
hex data...
12:34:56.000 [FINEST] Raw data to 127.0.0.1:8080:
hex data...
12:34:56.000 [FINER] Packet Disassembly from 127.0.0.1:8080:
pretty print data...
12:34:56.000 [FINER] Packet Disassembly to 127.0.0.1:8080:
pretty print data...
12:34:56.000 [FINE] Client 127.0.0.1:8080 requested to login with username 'hashsploit'. [1x]
... auth and internal db messages ...
12:34:60.000 [INFO] Player hashsploit (#0123456) logged in.
12:34:61.000 [FINE] [RPC] Sending heart-beat to RPC Server [id: xxxx]
12:34:62.000 [FINE] [RPC] Got response heart-beat from RPC Server [id: xxxx]
12:34:56.000 [INFO] Player hashsploit (#0123456) logged in.
12:34:56.000 [INFO] Player hashsploit (#0123456) logged out.
12:34:56.000 [FINE] Player hashsploit (#0123456) picked location 1 (Aquatos v2).
12:34:56.000 [INFO] [CH 3 (Staff Channel)] Player hashsploit (#0123456) joined.
12:34:56.000 [INFO] [CH 3 (Staff Channel)] [CHAT] hashsploit (#0123456): G
12:34:56.000 [INFO] [CH 3 (Staff Channel)] Player hashsploit (#0123456) left.
@hashsploit hashsploit added the enhancement New feature or request label Dec 18, 2020
@hashsploit hashsploit added the low-priority Low priority request label Apr 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low-priority Low priority request
Projects
None yet
Development

No branches or pull requests

1 participant