I have requirement to store client side logs to server side file system. I see JSNlog Ajax appender post JSON data. Is there a server side handler to write JSON log data to file system someone has already written? I don't use nodejs currently but if there is async winston handler for this, that would be great.
I am the author of JSNLog.
There already is a server side handler, called jsnlog-nodejs. This is an NPM package.
You said you do not use NodeJs, so I'm not sure what server side technology you use. In addition to NodeJs, there is also a JSNLog server side endpoint for .Net (on jsnlog.com).
If you decide to write your own server side endpoint, the structure of the messages sent by JSNLog is here: http://js.jsnlog.com/Documentation/DownloadInstall
About Winston, JSNLog supports this out of the box. You will have seen that JSNLog uses appenders. Any Winston transport can be used as an appender. See: http://nodejs.jsnlog.com/Documentation/HowTo/LogToDb
More info if you do use NodeJs on the server: http://nodejs.jsnlog.com/Documentation/DownloadInstall
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.