{"url":"https://kagasu.hatenablog.com/entry/2020/12/13/023857","blog_title":"\u5099\u5fd8\u9332","height":"190","title":"Node.js\u7528\u306e\u30ed\u30ac\u30fc\uff08winston\uff09\u306e\u4f7f\u3044\u65b9","width":"100%","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/kagasu/","version":"1.0","description":"\u2160. \u306f\u3058\u3081\u306b \u30bf\u30a4\u30c8\u30eb\u306e\u901a\u308a\u300cNode.js\u7528\u306e\u30ed\u30ac\u30fc\uff08winston\uff09\u306e\u4f7f\u3044\u65b9\u300d\u3067\u3059\u3002 \u2161. \u3084\u308a\u65b9 1. winston\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b npm i winston 2. \u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u304f const winston = require('winston') const moment = require('moment') const myFormat = winston.format.printf(x => `${moment().format('YYYY-MM-DD HH:mm:ss')} [${x.level}]: ${x.message}`) const logger \u2026","provider_url":"https://hatena.blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkagasu.hatenablog.com%2Fentry%2F2020%2F12%2F13%2F023857\" title=\"Node.js\u7528\u306e\u30ed\u30ac\u30fc\uff08winston\uff09\u306e\u4f7f\u3044\u65b9 - \u5099\u5fd8\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2020-12-13 02:38:57","author_name":"kagasu","image_url":null,"categories":["Node.js","JavaScript"],"blog_url":"https://kagasu.hatenablog.com/"}