Ticket #72 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Add logging to file and database

Reported by: mike Owned by: mike
Priority: normal Milestone: alpha-test
Component: server Version: 0.2
Keywords: Cc:
Estimated Effort: 2 days Platform: All
State: Complete Relative Size:

Description

Problem

There needs to be some way to send logs to a file or a database for the server.

Change History

Changed 6 years ago by mike

  • version changed from 0.3 to 0.2

Changed 6 years ago by mike

  • status changed from new to closed
  • platform set to All
  • state set to Complete
  • resolution set to fixed

Solution

Created EventLog? as a basic way to log events. Extended it into LogToFile? and LogToDB.

Added both types to Server. They are enabled by the "logs" option of the server, which should hold a list. If "db" is in the list, the database logging is on, and if "file", the file logging is done. By default, the file logs are stored to server-mmddyyyy.log, and the database logs are saved to the configured database under a table called events. The schema for the events table has been added to multiverse3d.sql.

Changed 4 years ago by mike

  • milestone changed from beta-test to MV3D-0.32

Milestone beta-test deleted

Changed 4 years ago by mike

  • milestone changed from MV3D-0.32 to alpha-test

Setting the milestone back

Note: See TracTickets for help on using tickets.