System.out与System.err的区别

近日,在看logback配置文件时,突然发现有个配置可以是System.out或者System.err,引起了本屌的好奇,这是啥玩意?这不是以前的控制台标准和error输出吗,本屌好奇的查看了下api,发现:

out
The "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output destination specified by the host environment or user. 

“标准”输出流。此流已经打开,并准备接受输出数据。通常,此流对应于主机环境或用户指定的显示输出或其他输出目的地。


err
Typically this stream corresponds to display output or another output destination specified by the host environment or user. By convention, this output stream is used to display error messages or other information that should come to the immediate attention of a user even if the principal output stream, the value of the variable out, has been redirected to a file or other destination that is typically not continuously monitored.


通常,此流对应于主机环境或用户指定的显示输出或其他输出目的地。按照惯例,输出流是用来显示 想得到用户的关注 的错误信息或其他信息,该变量的值会被重定向到一个文件或其他目的地,通常是不连续地监测。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值