@@ -185,16 +185,22 @@ function log_event() {
185185 LOGGING_TIMESTAMP=" ${BLUE} $( date +" %F %T,000" ) ${NO_COLOR} "
186186 case " ${1} " in
187187 " info" )
188- echo -e " ${LOGGING_TIMESTAMP} ${GREEN} INFO: ${NO_COLOR}${2} "
188+ echo -e " ${LOGGING_TIMESTAMP} ${GREEN} [ INFO] : ${NO_COLOR}${2} "
189189 ;;
190190 " error" )
191- echo -e " ${LOGGING_TIMESTAMP} ${RED} ERROR: ${NO_COLOR}${2} "
191+ echo -e " ${LOGGING_TIMESTAMP} ${RED} [ ERROR] : ${NO_COLOR}${2} "
192192 ;;
193193 " warning" )
194- echo -e " ${LOGGING_TIMESTAMP} ${ORANGE} WARNING: ${NO_COLOR}${2} "
194+ echo -e " ${LOGGING_TIMESTAMP} ${ORANGE} [ WARNING]: ${NO_COLOR}${2} "
195+ ;;
196+ " debug" )
197+ echo -e " ${LOGGING_TIMESTAMP} ${PURPLE} [ DEBUG]: ${NO_COLOR}${2} "
198+ ;;
199+ " critical" )
200+ echo -e " ${LOGGING_TIMESTAMP} ${RED} [CRITICAL]: ${NO_COLOR}${2} "
195201 ;;
196202 * )
197- echo -e " ${LOGGING_TIMESTAMP} ${PURPLE}${1} : ${NO_COLOR}${2 } "
203+ echo -e " ${LOGGING_TIMESTAMP} ${GREEN} [ INFO] : ${NO_COLOR}${1 } "
198204 ;;
199205 esac
200206}
@@ -267,12 +273,7 @@ function symlink_item() {
267273
268274function symlink_shell() {
269275 symlink_item " ${DOTFILES_DIR} /shell/.shell_aliases" " ${HOME} /.shell_aliases"
270- }
271-
272- function symlink_mac() {
273- if [[ $( uname) == " Darwin" ]]; then
274- symlink_item " ${DOTFILES_DIR} /shell/.mac_aliases" " ${HOME} /.mac_aliases"
275- fi
276+ symlink_item " ${DOTFILES_DIR} /shell/.shell_functions" " ${HOME} /.shell_functions"
276277}
277278
278279function symlink_zsh() {
@@ -306,6 +307,7 @@ function symlink_misc() {
306307
307308function symlink_bin() {
308309 symlink_item " ${DOTFILES_DIR} /bin/has" " /usr/local/bin/has"
310+ symlink_item " ${DOTFILES_DIR} /bin/now" " /usr/local/bin/now"
309311 if [[ $( uname) == " Linux" ]]; then
310312 symlink_item " ${DOTFILES_DIR} /bin/aptfile" " /usr/local/bin/aptfile"
311313 fi
@@ -318,7 +320,6 @@ function symlink_tools() {
318320
319321function symlink_dotfiles() {
320322 symlink_shell
321- symlink_mac
322323 symlink_zsh
323324 symlink_bash
324325 symlink_git
0 commit comments