summaryrefslogtreecommitdiff
path: root/src/log.h
Commit message (Collapse)AuthorAge
* Fix --color command line parameter ignorance (#7173)HybridDog2019-03-05
| | | | | | | | | | | | | | | | | | | | * Fix color command line parameter ignorance * coloured log: Support detecting the tty on windows * Print an error message when setting something invalid as color mode instead of silently using mode never * Revert "coloured log: Support detecting the tty on windows" This reverts commit 4c9fc6366487ac0e6799e181796ca594797bb6f8. It didn't work for travis and belongs to a separate PR * Allow adjusting the log color with an environment variable If --color is not passed to minetest, is used to decide on the log colorization. Minetest settings can not be used instead of an environment variable because logs may appear before loading them. * fix empty if body
* Fix missing warningstream (or similar problem) (#7034)you2018-03-04
| | | | | | | Use the --color command line parameter instead of a setting for coloured logs This fixes the missing warningstream bug, g_settings->get mustn't be used there. Also, the decision about en- or disabling log colours fits better to the command line parameters than minetest settings.
* Add coloured logs (#4549)you2017-12-06
| | | The setting log_colour can be used to en-/disable or autodetect it.
* Modernize various files (src/k*, src/l*)Loic Blot2017-08-18
| | | | | | | * range-based for loops * code style * C++ headers instead of C headers * Default operators
* C++ modernize: Pragma once (#6264)Loïc Blot2017-08-17
| | | | * Migrate cpp headers to pragma once
* Remove threads.h and replace its definitions with their C++11 equivalents ↵ShadowNinja2017-06-11
| | | | | | (#5957) This also changes threadProc's signature, since C++11 supports arbitrary thread function signatures.
* Use C++11 mutexes only (remove compat code) (#5922)Loïc Blot2017-06-06
| | | | * Fix event LINT & remove default constructor/destructors * remove compat code & modernize autolock header
* Add server side ncurses terminalest312015-11-06
| | | | | | | | | | | | | | | | | | | | | | | | This adds a chat console the server owner can use for administration or to talk with players. It runs in its own thread, which makes the user interface immune to the server's lag, behaving just like a client, except timeout. As it uses the same console code as the f10 console, things like nick completion or a scroll buffer basically come for free. The terminal itself is written in a general way so that adding a client version later on is just about implementing an interface. Fatal errors are printed after the console exists and the ncurses terminal buffer gets cleaned up with endwin(), so that the error still remains visible. The server owner can chose their username their entered text will have in chat and where players can send PMs to. Once the username is secured with a password to prevent anybody to take over the server, the owner can execute admin tasks over the console. This change includes a contribution by @kahrl who has improved ncurses library detection.
* Small logging refactor and additional optionsest312015-10-24
| | | | | | | | | | | -> Get rid of Logger::logToSystem and use normal downstream output system for android instead -> Give the downstream output system more information: enrich the log function of ILogOutput with information and add ICombinedLogOutput for easier use. -> Make Logger::getLevelLabel() static and public so that it can be used by downstream log output. -> Add g_ and m_ prefixes where required
* Refactor loggingShadowNinja2015-10-14
| | | | | | | | | - Add warning log level - Change debug_log_level setting to enumeration string - Map Irrlicht log events to MT log events - Encapsulate log_* functions and global variables into a class, Logger - Unify dstream with standard logging mechanism - Unify core.debug() with standard core.log() script API
* Move globals from main.cpp to more sane locationsCraig Robbins2015-04-01
| | | | | | | | | | | | Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
* Log: Silence errorstream during unittestskwolekr2014-12-12
|
* Update Copyright YearsSfan52013-02-24
|
* Change Minetest-c55 to MinetestPilzAdam2013-02-24
|
* Switch the license to be LGPLv2/later, with small parts still remaining as ↵Perttu Ahola2012-06-05
| | | | GPLv2/later, by agreement of major contributors
* Add better trace peudo-loglevel supportPerttu Ahola2012-05-20
|
* Add a third log output interface methodPerttu Ahola2011-11-29
|
* Add log_remove_output and log_deregister_threadPerttu Ahola2011-11-29
|
* Initially add small and tight logging facilityPerttu Ahola2011-10-16