path: root/utils/log.c
Commit message (Collapse)AuthorAgeFilesLines
* Dukky: Add and utilise a jserrors categoryDaniel Silverstone2019-08-021-0/+1
| | | | | | | Normal, and verbose logging will now also log all JS errors in order that we stand a chance of debugging things more easily when testing. Signed-off-by: Daniel Silverstone <>
* Logging: Also log the level and categoryDaniel Silverstone2019-08-021-4/+7
| | | | Signed-off-by: Daniel Silverstone <>
* LOG: Add a dukky logging categoryDaniel Silverstone2019-02-171-0/+1
| | | | | | For better logging separation, add a dukky logging category Signed-off-by: Daniel Silverstone <>
* Finalise nslog layer properly in closedownDaniel Silverstone2017-09-101-1/+17
* Sort out the logging so that -v etc do the right thingDaniel Silverstone2017-09-081-15/+61
* do not attempt to log when output is not enabledVincent Sanders2017-09-071-12/+13
* update layout logging to use a catagoryVincent Sanders2017-09-071-0/+1
* update framebuffer toolkit logging to use a ctagoryVincent Sanders2017-09-071-0/+1
* Update scheduler logging to use catagoryVincent Sanders2017-09-071-0/+1
* update plotter logging to use a catagoryVincent Sanders2017-09-061-0/+1
* update fetch debug logging to use catagoryVincent Sanders2017-09-061-0/+1
* add low level cache category and use itVincent Sanders2017-09-061-7/+4
* use nslog library for logging if available.Vincent Sanders2017-09-031-85/+136
* move sys/time.h support functionality out of generic headerVincent Sanders2016-04-191-1/+1
| | | | | | | The utils header is a large collection of functionality for several system headers and API. This splits out the ones from sys/time.h into a separate header reducing the need for many unconnected source files to include the system header unecessarily.
* Fix logging to stderr if verbose_log was set before nslog_init was calledVincent Sanders2015-07-051-2/+5
* Move the browser identification and machine info logging.Vincent Sanders2015-06-211-0/+20
| | | | | | | | 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.
* use logfile as variable name as cocoa gives an error about the symbol type ↵Vincent Sanders2015-05-291-8/+8
| | | | of logf
* Improve logging interface to reduce overheadVincent Sanders2015-05-291-10/+18
| | | | | | | | | | | | | 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.
* Allow verbose logging to be directed to a fileVincent Sanders2015-05-291-1/+34
* Cast timeval.usec calculations to int as AmigaOS3 has some conflicting ↵Chris Young2015-01-191-3/+3
| | | | | | headers which means it can be treated as an unsigned value. This ensures the log time is always correct.
* move verbose log global into logging module and remove netsurf.h includeVincent Sanders2014-01-291-1/+2
* move the logging initialisation out to be call by frontendsVincent Sanders2013-05-231-11/+13
| | | | | This allows each frontend to pass a distinct callback to configure the output file stream appropriately for their use.
* reduce call overhead on log messagesVincent Sanders2012-11-051-6/+4
* Make log times line up for neatnessDaniel Silverstone2012-07-071-1/+1
* Move timeval_subtract to utils/log.c & make it static, as it's not used ↵John Mark Bell2011-10-151-1/+29
| | | | | | anywhere else svn path=/trunk/netsurf/; revision=13059
* Fix build with NDEBUG definedJohn Mark Bell2011-04-031-4/+9
| | | | svn path=/trunk/netsurf/; revision=12154
* move logging initialisationVincent Sanders2011-04-021-0/+29
| | | | svn path=/trunk/netsurf/; revision=12152
* Log to stderrJohn Mark Bell2011-03-121-0/+15
| | | | svn path=/trunk/netsurf/; revision=11983
* Changing Xcode project file to build using the Makefiles and fixed some ↵Sven Weidauer2011-01-311-1/+1
| | | | | | warnings. svn path=/trunk/netsurf/; revision=11558
* Fix windows url barVincent Sanders2010-10-171-0/+47
Clean up toolbar and urlbar creation and subclassing svn path=/trunk/netsurf/; revision=10891