sternenseemann / spacecookie

gopher library & server written in Haskell
https://sternenseemann.github.io/spacecookie/
GNU General Public License v3.0
47 stars 5 forks source link

Allow user logging #24

Closed sternenseemann closed 3 years ago

sternenseemann commented 3 years ago

The current log system is alright, but doesn't allow the user to log anything. I'm also kind of unhappy that we always have a TimeFastLogger although it may not be used (glcTimed = False).

I think a good way forward is to rework logging again completely and let the user set an IO action for logging. Additionally I think the LogMessage sum type needs to be simplified somehow, without sacrificing the ability to hide private data.

This should be done before 0.3.0.0 since I don't want to break the API twice in a row.