X-Git-Url: http://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=log.c;h=45ec17e01bfef44420a52834034043594bfa5982;hp=7b17cb0d4191dc209fc1014a5c58df35f5d836c8;hb=743957a08f068529d3add3e8485678b4e5034195;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410 diff --git a/log.c b/log.c index 7b17cb0..45ec17e 100644 --- a/log.c +++ b/log.c @@ -13,8 +13,7 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ #include @@ -111,6 +110,17 @@ loglevels setlogthreshold(loglevels loglevel) return oldlevel; } +/* + * getlogthreshold - get the threshold for log output + * + * Returns the threshold for log output; anything logged with a log level + * lower than this will be silently dropped. + */ +loglevels getlogthreshold(void) +{ + return logthres; +} + /* * vflog - write a log entry to an already opened log file. * @logfile: The FILE * handle of the open log file.