gomeler / LocationGenerator

Simple exercise in Go that generates locations for tabletop RPGs.
0 stars 0 forks source link

Logging: Find a way to conveniently lump all logs for a building together #10

Open gomeler opened 5 years ago

gomeler commented 5 years ago

logrus supports the concept of a contextLogger, and fields within log messages. Having a field of buildingID to associate all log messages with the building they're being logged for would be helpful for tracing where things go wrong. Pretty low priority though for now, as there is no out-of-order processing happening right now.