Skip to content

Instantly share code, notes, and snippets.

@nickdichev
Created May 30, 2019 23:29
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 nickdichev/5566d650b1e767ed1dcd808d46ac9945 to your computer and use it in GitHub Desktop.
Save nickdichev/5566d650b1e767ed1dcd808d46ac9945 to your computer and use it in GitHub Desktop.
iex(1)> alias NSyslog.Writer         
NSyslog.Writer
iex(2)> alias NSyslog.Writer.Supervisor
NSyslog.Writer.Supervisor
iex(3)> Supervisor.create_writer(%Writer{rfc: :rfc3164, protocol: :tcp, aid: "1", host: "localhost", port: 514})
{:ok, #PID<0.170.0>}
iex(4)> 
16:27:52.584 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.494 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.496 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.496 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.500 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.501 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.502 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.502 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.503 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.504 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.505 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.506 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.509 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.509 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.510 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.510 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.511 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.512 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.513 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.514 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.517 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.517 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.518 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.519 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.520 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.520 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.521 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.523 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.524 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.525 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.526 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.527 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.527 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.528 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.529 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.530 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.531 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.531 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.533 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.533 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.534 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.535 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.536 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.537 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.538 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.538 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.540 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.541 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.542 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.542 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.543 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.544 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.545 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.546 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.547 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.548 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.549 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.550 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.553 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.554 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.555 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.557 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.558 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.559 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.560 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.560 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.561 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.562 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.563 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.563 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.564 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.565 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.568 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.574 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.575 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.576 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.577 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.578 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.579 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.580 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.581 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.582 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.584 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.584 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.587 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.588 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.591 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.593 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.593 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.594 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.595 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.596 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.597 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.598 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.599 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.600 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.601 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.602 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.603 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.603 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.605 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.606 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.607 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.608 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.609 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.610 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.611 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.612 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.616 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.618 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.620 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.621 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.623 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.623 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.625 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.626 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.628 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.629 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.630 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.631 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.635 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.635 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.636 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.638 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.640 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.642 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.643 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.644 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.645 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.646 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.647 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.649 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.651 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.652 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.654 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.657 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.661 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.662 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.664 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.667 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.671 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.672 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.676 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.676 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.679 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.685 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.688 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.690 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.692 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.693 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.694 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.695 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.697 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.699 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.701 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.702 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.703 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.704 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.707 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.709 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.710 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.711 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.712 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.713 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.714 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.715 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.717 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.719 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.720 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.722 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.724 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.725 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.725 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.726 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.727 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.728 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.729 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.730 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.731 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.732 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.733 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.734 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.735 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.736 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.738 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.740 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.741 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.742 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.743 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.744 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.745 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.746 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.747 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.748 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.749 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.750 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.751 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.757 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.758 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.759 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.761 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.762 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.763 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.764 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.765 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.767 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.768 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.769 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.770 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.772 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.773 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.774 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.774 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.775 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.776 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.777 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.778 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.779 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.780 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.782 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.784 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.785 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.786 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.789 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.790 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.791 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.793 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.795 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.801 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.803 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.804 [info]  [#PID<0.170.0>] Connected to localhost:514
 
16:28:00.807 [warn]  [#PID<0.170.0>] Lost connection to localhost:514
 
16:28:00.808 [warn]  Could not connect to localhost:514 -- econnrefused.
 
16:28:00.808 [warn]  Waiting 0 seconds for localhost:514.
 
16:28:00.809 [warn]  Could not connect to localhost:514 -- econnrefused.
 
16:28:00.809 [warn]  Waiting 1 seconds for localhost:514.
 
16:28:01.811 [info]  [#PID<0.170.0>] Connected to localhost:514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment