Skip to content

Instantly share code, notes, and snippets.

@ltudury
Created January 19, 2012 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ltudury/1636674 to your computer and use it in GitHub Desktop.
Save ltudury/1636674 to your computer and use it in GitHub Desktop.
Loggly Custom Command Structure
loggly.bark.external_command({ /*VERY IMPORTANT, this is what allows your command to be loaded */
CommandName: { /*Towards the beginning when you used colormodified.js example...this was labeled **change** */
run: function ( args, stdin, context ) {
/* what you want your command to do with piped parameters */
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment