Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,938
Community Members
 
Community Events
176
Community Groups

How to adjust logging (get rid of line prefixes in raw logs)?

My team and I find the default raw logs very impractical. Consider the following example:

simple	15-Dec-2021 20:35:53	Running pre-build action: VCS Version Collector
simple	15-Dec-2021 20:35:53	Starting task 'install' of type 'com.atlassian.bamboo.plugins.bamboo-nodejs-plugin:task.builder.npm'
command	15-Dec-2021 20:35:53	...
error	15-Dec-2021 20:35:54	npm info it worked if it ends with ok
error	15-Dec-2021 20:35:54	npm verb cli [
error	15-Dec-2021 20:35:54	npm verb cli   '/appl/nodejs/node-v14.15.1-linux-x64/bin/node',
error	15-Dec-2021 20:35:54	npm verb cli   '/appl/nodejs/node-v14.15.1-linux-x64/bin/npm',
error	15-Dec-2021 20:35:54	npm verb cli   'ci',
error	15-Dec-2021 20:35:54	npm verb cli   '--verbose',
error	15-Dec-2021 20:35:54	npm verb cli   '--ignore-scripts'
error	15-Dec-2021 20:35:54	npm verb cli ]
error	15-Dec-2021 20:35:54	npm info using npm@6.14.8
error	15-Dec-2021 20:35:54	npm info using node@v14.15.1
error	15-Dec-2021 20:35:54	npm verb npm-session 550eb15955fb836f
error	15-Dec-2021 20:35:54	npm info prepare initializing installer
error	15-Dec-2021 20:35:54	npm verb prepare starting workers
error	15-Dec-2021 20:35:54	npm verb prepare using package-lock.json
error	15-Dec-2021 20:35:54	npm verb checkLock verifying package-lock data


The error prefix can go on for hundreds of lines, which makes it really hard to find an actual "error" string within the logs. 

Is there any way to get rid of those line prefixes? And maybe even the datetime string (which is also not always useful)?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events