Vincent Sanders
8e26870e15
Fix logging to stderr if verbose_log was set before nslog_init was called
2015-07-05 00:51:29 +01:00
Vincent Sanders
335bbe4f52
Move the browser identification and machine info logging.
...
Previously this information was logged when netsurf_init was called
which might be many lines out output into the log.
It is useful to have this information at the beginning of the log to
make it easily found. In addition it makes netsurf_init less complex.
2015-06-21 23:27:21 +01:00
Vincent Sanders
25d7f0c657
use logfile as variable name as cocoa gives an error about the symbol type of logf
2015-05-29 16:32:12 +01:00
Vincent Sanders
faf9b9d919
Improve logging interface to reduce overhead
...
This reduces logging overhead by only calling the log output function
once instead of three times.
Additionally the nslog_gettime interface no longer needs to be
exported and the static function is directly inlined further reducing
function call overhead.
Finally the appending of a newline uses fputc instead of a full printf
call which is considerably more simple and further reduces overhead
time.
2015-05-29 16:18:18 +01:00
Vincent Sanders
4324bf535f
Allow verbose logging to be directed to a file
2015-05-29 16:14:42 +01:00
Chris Young
989a5da334
Cast timeval.usec calculations to int as AmigaOS3 has some conflicting headers which means it can be treated as an unsigned value.
...
This ensures the log time is always correct.
2015-01-19 19:15:48 +00:00
Vincent Sanders
d5a971c281
move verbose log global into logging module and remove netsurf.h include
2014-01-29 23:20:19 +00:00
Vincent Sanders
35dacc3671
move the logging initialisation out to be call by frontends
...
This allows each frontend to pass a distinct callback to configure the
output file stream appropriately for their use.
2013-05-23 11:50:57 +01:00
Vincent Sanders
2b4a359425
reduce call overhead on log messages
2012-11-05 15:49:23 +00:00
Daniel Silverstone
ea5a8ed771
Make log times line up for neatness
2012-07-07 18:01:57 +01:00
John Mark Bell
5b644acf61
Move timeval_subtract to utils/log.c & make it static, as it's not used anywhere else
...
svn path=/trunk/netsurf/; revision=13059
2011-10-15 13:11:04 +00:00
John Mark Bell
ff60007458
Fix build with NDEBUG defined
...
svn path=/trunk/netsurf/; revision=12154
2011-04-03 22:23:14 +00:00
Vincent Sanders
74ffc40e92
move logging initialisation
...
svn path=/trunk/netsurf/; revision=12152
2011-04-02 13:05:55 +00:00
John Mark Bell
0c7c722e23
Log to stderr
...
svn path=/trunk/netsurf/; revision=11983
2011-03-12 19:13:27 +00:00
Sven Weidauer
fd23621211
Changing Xcode project file to build using the Makefiles and fixed some warnings.
...
svn path=/trunk/netsurf/; revision=11558
2011-01-31 07:57:52 +00:00
Vincent Sanders
07c62407e2
Fix windows url bar
...
Clean up toolbar and urlbar creation and subclassing
svn path=/trunk/netsurf/; revision=10891
2010-10-17 00:08:35 +00:00