Create general purpose logging module #4
No reviewers
Labels
No Label
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ferdinland-minecraft-server/smp-datapack#4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "dev-logging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Can be called anywhere within JMC codebase. Built on a @lazy function
logger()that takes in log type, caller, and message. Output a string passed to thesaycommand.Configure five log levels, called using their associated integer:
Add log level, which sets default log output threshold to 3 (WARNING). Allow log level to be changed by modifying the codebase or setting manually via scoreboard value. Prevent log level from being automatically reset on
reloadunless presenting an invalid value.Add toggleable debug mode that bypasses configured log level when enabled. Prevent
reloadfrom changing value when already set.Implement "caller" parameter to allow for tracing of bugs. There is no automatic caller detection, so the field should be filled out according to a set of conventions. Current suggestion is:
Prefer
sayovertellrawas it will always send regardless of players online. This allows for logging-based development without loading the client. It should also allow logs to be sent to chat when appropriate, but this has not worked with the current Discord integration.Create general purpose logging moduleto [WIP] Create general purpose logging module[WIP] Create general purpose logging moduleto Create general purpose logging module