Meteor Development Tiny Tip That Helped Me A Lot

meteor help run (this could be sorted alphabetically and some options such as --port are duplicated).
I found --raw-logs. This removes the time stamps from the server log.

It has been so annoying (I must say) to deal with debug log and AI chat tools having to remove all those time stamps or sending useless context volume. Now the debug log is clean and perfect and can copy-paste results in clean JSON format.

=> Meteor server restarted at: http://192.168.1.72:3600
I20250918-11:55:33.152(4)? [
I20250918-11:55:33.153(4)?   {
I20250918-11:55:33.153(4)?     _id: 'Gofhu6qSPsLjQ5SaC',
I20250918-11:55:33.153(4)?     nickname: 'ESC-Dubai',
I20250918-11:55:33.153(4)?     logo: 'd91b4129-f0ca-4099-88e4-727218014d46.jpeg',
I20250918-11:55:33.154(4)?     hColor: '#bbbbbb'
I20250918-11:55:33.154(4)?   },
I20250918-11:55:33.154(4)?   {
I20250918-11:55:33.154(4)?     _id: 'WSQ73kswGwPiEdXwW',
I20250918-11:55:33.155(4)?     subscriptionId: ObjectID { _str: '68c40d57375b8e61c5ef3909' },
I20250918-11:55:33.155(4)?     nickname: 'ESC-Abu Dhabi',
I20250918-11:55:33.155(4)?     logo: 'e213c1a1-f422-47cc-ad5e-8fbed3d960fb.jpeg',
I20250918-11:55:33.155(4)?     hColor: '#bbbbbb'
I20250918-11:55:33.155(4)?   },
I20250918-11:55:33.156(4)?   { id: '858yYEfBFnfpxD7Yb', incomplete: true, type: 'businesses' }
I20250918-11:55:33.156(4)? ]

versus

[
  {
    _id: 'Gofhu6qSPsLjQ5SaC',
    nickname: 'ESC-Dubai',
    logo: 'd91b4129-f0ca-4099-88e4-727218014d46.jpeg',
    hColor: '#bbbbbb'
  },
  {
    _id: 'WSQ73kswGwPiEdXwW',
    subscriptionId: ObjectID { _str: '68c40d57375b8e61c5ef3909' },
    nickname: 'ESC-Abu Dhabi',
    logo: 'e213c1a1-f422-47cc-ad5e-8fbed3d960fb.jpeg',
    hColor: '#bbbbbb'
  },
  { id: '858yYEfBFnfpxD7Yb', incomplete: true, type: 'businesses' }
]
9 Likes

Very helpful tip! Thanks

1 Like

Maybe this should be the default way to and you’d use --timestamp to allow the current behavior @italojs @nachocodoner ?

Actually, I didn’t know about --raw-logs, but I do know how disruptive those timestamp issues have been in development. I think I am going to use this option often. Not sure what others think about.

If most tools favor raw, low-noise, copy-pastable logs, this is a good idea. Would anyone contribute to it?


Lets do a quick survey anyway.

Would you like the timestamp to appear by default in the meteor run dev server logs?

  • Yes, it should be hidden by default and only enabled with --timestamp.
  • No, it should stay as it is, with the option to use --raw-logs to remove it.
0 voters
1 Like

I will look into this.

2 Likes

Woah. I just had my 10 year anniversary here - only to find out what I’ve been missing all this time.

2 Likes

Same for me… Thanks for the tip !

Wow! More than ten years for me too. I love it!

1 Like

I think this was PR-ed already by @grubba.

2 Likes

PR by @grubba DEV: Flip `--raw-logs` to default true and add `--timestamps` option. by Grubba27 · Pull Request #13944 · meteor/meteor · GitHub

I would still love some help getting that test green hehe

@grubba note this down cause it will help you throughout the rest of your career.
On the test page in Github, go to the developer tools in Chrome, find the red text and change the CSS to green. You are welcome.

I asked in Slack to remove the test, Nacho did not let me :sob: