Arĝentakato
Logger Structure args
I am implementing a simple access log in Deno Fresh, but I am not quite sure how to use the standard library Logger.
I want to record logs with remote host etc. at the beginning of the sentence like nginx logs, but can I specify the type of log argument?
Currently, the implementation is as follows:
A current implementation requires inserting the remote host or other information to be displayed in the argument each time, which we believe is tedious and prone to errors.
I have read the documentation but could not come up with a good solution. Any advice would be appreciated.
6 replies