Icon hamburger 25bb686bcd80c6929c82664f55c89d3ee6c7d74f7c7663e8275f59b1d30b466c
Icon left arrow f62db9f379968c4c2d1305d4bc044fc470ff94ef57dfe030948589849676ff7a
Icon export 8e7150badcb22a4bdce86461b61700759e46cf3f91e4966d3d0e9db8b6e318d6
Icon close white 336994f99c56e42e81d45a12d8400075a2539c8bfdccd38036ba7662486813a3
Icon close 6d35f82d018f6fbea9c18d290bd43f3fbd29c7628d2fefffa7ad5914dc3ea36c

Keyboard Shortcuts

h
Home
f
Live Feed
p
Profile Page
c
Compose
u
Sign Up
i
Sign In
o
Sign Out
m
Menu
s
Settings
e
Embed Codes
esc
Close Menu
New shell alias for #logs. It `tail`s any file in the current directory that ends in '.log' or is in a folder called 'log' (recursively). Hidden files from git/svn are ignored.
1+ y ago
Tue May 22 2018
Smaller 055b9b04 c2fe 44f2 aae4 1f61b960a228
So does not yield a new line... the alias is: tail -f $(find . -type d -name "*log*" -not -path "*.git*" -not -path "*.svn*")/* $(find . -type f -name "*.log") #ask - how to make this more comprehensive? what are other common log file names/locations?
1+ y ago
Tue May 22 2018
Smaller 055b9b04 c2fe 44f2 aae4 1f61b960a228
Instead of mixing `find` commands, grep simplifies things: tail -F $(find . -type f -not -path '*.git*' -not -path '*.svn*' | grep -e '/log/' -e '/logs/' -e '\.log')
1+ y ago
Tue May 22 2018
Smaller 49c88e08 2b38 4408 8236 7c1b5195b410
This is pretty cool, Sean. Will it work if there are multiple log files in a directory? Iā€™m thinking about Rails instances where you have development.log, prod.log, etc.
1+ y ago
Tue May 22 2018
Smaller 055b9b04 c2fe 44f2 aae4 1f61b960a228
Yep! I've improved it a bit again. So basically it looks for any file in the current dir and below that ends in '.log' or any file that is in a folder called 'log' or 'logs' (excluding scm/node_modules/zip files). It passes all of them to `tail`, which accepts multiple files. So one command, see all the logs w/out even looking. Here's what it looks like: https://i.imgur.com/Ow4ZxLg.png. And the latest update: bash - https://goo.gl/hZn2J8 fish - https://goo.gl/hY1Yhm.
1+ y ago
Tue May 22 2018
Smaller 49c88e08 2b38 4408 8236 7c1b5195b410
That's pretty awesome Sean! Will give it a whirl ā€” I'm always messing with my log output screens so this will be fun to try. I usually have a tmux pane just spitting out the tail output on my various projects. Good stuff!
1+ y ago
Tue May 22 2018
Smaller 055b9b04 c2fe 44f2 aae4 1f61b960a228
Thanks, glad it's useful! I actually thought of it while creating tmuxinator templates
1+ y ago
Tue May 22 2018
Smaller 49c88e08 2b38 4408 8236 7c1b5195b410
šŸ‘
1+ y ago
Wed May 23 2018