把tomcat 日志关闭_把日志给我

把tomcat 日志关闭

有时,作为主要负责部署的开发人员可以使用一些帮助来获取正确的源代码并为发行版进行构建。 毕竟,由此产生的伪像可能与将在生产中部署的伪像相同。 我们检查每个代码提交及其影响非常重要。

在这种情况下,我要做的一件事是我使用git日志为我提供了源和提交的信息,这些信息将作为发行版的一部分:

git log --pretty=format:"%h - %an, %ar, %ae : %s" --stat --name-only --graph --since=2015-01-01 >> logme.log

让我们一点一点地运行它:

git log is a git command that gets the details of the commits
--pretty=format can be used to specify a specific format using "%an, %ar, %ae, : %s". Thats author revision, name, email and file.
--stat to show the statistics
--name-only to show the filenames only
-- graph to show a graphical representation
--since to show only the commits made from the given date up to the current date (today)

16-07-2015-8-34-13-am

仅图形如何? 我运行了相同的git日志,但只传递了格式和–graph参数。 输出如下。

$ git log --pretty=format:"%h %s" --graph
* 2d3acf9 ignore errors from SIGCHLD on trap
* 5e3ee11 Merge branch 'master' of git://github.com/areyes/hubbys
|\
| * 420eac9 Added a method for getting the current details to the branch.
* | 30e367c timeouts
* | 5a09431 add timeout protection to hubbys
* | e1193f8 support for heads with slashes in them
|/
* d6016bc require time for xmlschema
* 11d191e Merge branch 'hubbys' into local

..以及自2014年1月1日起至2010年11月1日之前专门用于Areyes的日志如何

$ git log --pretty="%h - %s" --author=areyes1--since="2014-10-01" --before="2010-11-01"
5610e3b - Fix testcase failure when extended attributes are in use
acd3b9e - Enhance hold_lock_file_for_{update,append}() API
f563754 - demonstrate breakage of detached checkout with symbolic link HEAD
d1a43f2 - reset --hard/read-tree --reset -u: remove unmerged new paths
51a94af - Fix "checkout --track -b newbranch" on detached HEAD
b0ad11e - pull: allow "git pull origin $something:$current_branch" into an unborn branch

有很多可用的git log格式选项,可以在这里找到并且有了这些,就可以创建很多自动化功能!

想法:您可以将其回显到文件中,然后发送给开发人员进行验证,或者更好的想法是,遍历用户列表,获取他们的每封电子邮件和修订,为每个用户生成日志文件,然后将其发送给他们。 相当整洁,因为它将使开发人员鸟瞰将包含在发行版中的资源(如果不包括其资源,则通知团队)

翻译自: https://www.javacodegeeks.com/2015/07/git-me-the-log.html

把tomcat 日志关闭

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值