Con Kolivas
a6e0b6ed39
Add a simplelog function that does not log date and time.
11 years ago
unknown
feac311305
VS2010 build: Converted applog() macro to function.
11 years ago
Noel Maersk
3ade514b94
log: Do not pad log string with a space.
11 years ago
Noel Maersk
f6f950273b
log: Change log_dateformat to log_show_date and make it bool.
11 years ago
Martin Danielsen
ba1c47781f
log: Added a switch to the log date and time format.
...
It is possible to switch back to full date and time on each log line with "--log-dateformat 1". The short time-only format is default with the value of 0.
Log with short time-only format looks like:
[23:59:59] Accepted 389c47d1 Diff 1.16K/512 GPU 0 pool 0
[00:00:16] Log date is now 2013-12-22
[00:00:16] Stratum from pool 0 detected new block
[00:00:33] Accepted 7a4950a4 Diff 536/512 GPU 0 pool 0
11 years ago
Con Kolivas
8e9f32a81b
Add a forcelog variant of applog which invalidates any console lock to force output.
11 years ago
Kano
5fb5dd0bd6
logging - size check sprintf
12 years ago
Kano
e2b4d4908d
logging remove extra added <LF>
12 years ago
Kano
7eba963477
remove varargs from logging/quit/in general as much as possible
12 years ago
Kano
8f08a327ca
applog - force type checking
12 years ago
Con Kolivas
8971c56b8d
va_copy is meant to be matched by a va_end in log_generic.
12 years ago
Con Kolivas
93901011cf
Use cgtime in logging.c
12 years ago
James Z.M. Gao
c9ae715019
Compile CPU mining for win32 and win64
12 years ago
Con Kolivas
c113534feb
Begin support for mingw stratum build.
...
Conflicts:
configure.ac
12 years ago
Luke Dashjr
da4ff2bde1
Bugfix: Use a mutex to control non-curses output
...
Without this, there is no guarantee writes won't overlap (and it happens quite a bit on Windows with the bitforce driver)
13 years ago
Luke Dashjr
d98e561a0a
Simplify code to a single vprintf path for curses-less printing
13 years ago
Luke Dashjr
80593c47fc
Move opt_quiet check to my_log_curses, so it works for curses-less builds
13 years ago
Luke Dashjr
d2195bd04e
Use log_generic for vapplog to cut down on code duplication
13 years ago
Luke Dashjr
1097aefbad
Add space to log output now that there is more screen real estate available.
13 years ago
Luke Dashjr
a1edc7dbcb
Bugfix: Fix build without curses but with OpenCL
13 years ago
Con Kolivas
4da6758f43
Add space to log output now that there is more screen real estate available.
13 years ago
Luke Dashjr
ed8382c88d
Make curses TUI support optional at compile-time.
13 years ago
Con Kolivas
d1cddf8bad
Update licensing to GPL V3.
13 years ago
Con Kolivas
810ad04578
More copyright updates.
13 years ago
Con Kolivas
111238489f
Fix missing field initialisers warnings.
13 years ago
Con Kolivas
be8ad57962
Add missing define in logging.c for isatty()
13 years ago
zefir
e0fec35751
modularized logging, support for priority based logging
...
Functions related to logging are extracted into dedicated source files
for better maintainability.
The existing low-level logging API is extended with a generalized scheme
providing log functions log_{error, warning, notice, info, debug} that
log messages based on a global opt_log_level.
opt_log_level for now is set to LOG_NOTICE and might be modified via
command line options or config files in future releases.
13 years ago