Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dhess/c-logging
A syslog-compatible stderr logging mechanism
https://github.com/dhess/c-logging
Last synced: 27 days ago
JSON representation
A syslog-compatible stderr logging mechanism
- Host: GitHub
- URL: https://github.com/dhess/c-logging
- Owner: dhess
- License: cc0-1.0
- Created: 2011-07-19T02:05:21.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-15T09:56:35.000Z (about 13 years ago)
- Last Synced: 2023-04-11T19:02:20.593Z (over 1 year ago)
- Language: C
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: COPYING
Awesome Lists containing this project
README
* WHAT
logging.[ch] provides a syslog(3)-compatible logging interface for
logging to stderr. It could be easily extended to support other
forms of logging, as well: stdout, file, network, etc.* WHY
The syslog(3) interface is simple, yet robust. However, sometimes
it's useful to log to stderr rather than to the system logger, e.g.,
in an interactive command-line application, or when debugging a
service running in the foreground.Some UNIX systems support simultaneous logging both to syslog and
stderr, but not stderr alone. The logging implementation provided
here permits stderr-only logging using an interface that's
compatible with the (relevant parts of the) syslog(3) interface.See logging.h for the API documentation, and logtest.c for examples
of how to use it in your own programs.* INSTALLING
The source code provided isn't a library as such, so it doesn't need
to be installed. Just copy the logging.[ch] source files into your
project. (Also see LICENSE below.)The source has no dependencies beyond the ISO C standard library and
a syslog interface that includes the vsyslog(3) function.The included Makefile builds an example application, logtest, whose
source code demonstrates how to use the logging interface.* LICENSE
The code included here has no license; it is dedicated to the public
domain. See the file COPYING, included in this distribution, for the
specifics.* CONTACT
Drew Hesshttp://drewhess.com/