]>
cygwin.com Git - cygwin-apps/setup.git/blob - log.cc
2 * Copyright (c) 2000, Red Hat, Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by DJ Delorie <dj@redhat.com>
16 /* The purpose of this file is to centralize all the logging functions. */
19 static const char *cvsid
=
37 #include "io_stream.h"
40 log (enum log_level level
, String
const &message
)
42 LogSingleton::GetInstance()(level
) << message
<< endLog
;
46 log (enum log_level level
, const char *fmt
, ...)
51 vsnprintf (buf
, 1000, fmt
, args
);
52 log (level
, String(buf
));
This page took 0.035962 seconds and 5 git commands to generate.