Skip to content

chris-huxtable/syslog.cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syslog.cr

Docs GitHub release Build Status

Adds syslog functionality to crystal via LibC bindings.

Installation

Add this to your application's shard.yml:

dependencies:
  syslog:
    github: chris-huxtable/syslog.cr

Usage

Requiring:

require "syslog"

Basic Usage:

Syslog.emergency("This is an emergency message")
Syslog.alert("This is an alert message")
Syslog.critical("This is a critical message")
Syslog.error("This is an error message")
Syslog.warning("This is a warning message")
Syslog.notice("This is a notice message")
Syslog.info("This is an info message")
Syslog.debug("This is a debug message")

Facility Usage:

Syslog.info("This is an info message sent to the LOCAL0 Facility", Syslog::Facility::Local0)

Contributing

  1. Fork it (https://github.com/chris-huxtable/syslog.cr/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Adds syslog functionality to crystal via LibC bindings.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy