如何删除sails js默认日志消息

时间:2016-11-02 10:46:25

标签: node.js sails.js

请详细说明如何删除当" sails lift"时显示的默认日志消息。也写入我的外部日志文件:

info: Starting app...

debug: Deprecation warning: Support for `sails.config.sockets.onConnect` will be
 removed in an upcoming release. See the v0.11 migration guide for more informat
ion and alternate options.
info:
info:                .-..-.
info:
info:    Sails              <|    .-..-.
info:    v0.12.4             |\
info:                       /|.\
info:                      / || \
info:                    ,'  |'  \
info:                 .-'.-==|/_--'
info:                 `--'-------'
info:    __---___--___---___--___---___--___
info:  ____---___--___---___--___---___--___-__
info:
info: Server lifted in `E:\Orange\sailsJS_workspace\server`
info: To see your app, visit http://localhost:1337
info: To shut down Sails, press <CTRL> + C at any time.
debug: -------------------------------------------------------
debug: :: Wed Nov 02 2016 12:03:45 GMT+0200 (Egypt Standard Time)
debug: Environment : development
debug: Port        : 1337
debug: -------------------------------------------------------

1 个答案:

答案 0 :(得分:3)

只需添加:

hiveContext.sql(  "select A1.x,  A1.y, A1.z from (select concat(g,h) as x,  y,  z   from raw_parquet where f = '') A1   group by A1.x,  A1.y,A1.z  having count(distinct(A1.z)) > 1").show()

要提交:config / log.js

对于其他默认日志消息,使用&#34; level&#34;,它会在文件开头的注释中记录。