Commit Graph

344 Commits

Author SHA1 Message Date
Kjell Hedstrom
a8d89b67c8 Merge branch 'clang-improved-crash-handling' of https://github.com/KjellKod/g3log into clang-improved-crash-handling
Conflicts:
	Build.cmake
	example/main_fatal_choice.cpp
2015-08-31 23:07:25 -06:00
Kjell Hedstrom
a068575595 removed comments. improved death test 2015-08-31 22:30:48 -06:00
Kjell Hedstrom
662fde2941 Merge pull request #44 from KjellKod/clean-cmake
improved: make clean-cmake to remove temporary files
2015-08-31 21:13:04 -06:00
Kjell Hedstrom
420fc92fa1 improved: make clean-cmake to remove temporary files 2015-08-31 21:12:11 -06:00
Kjell Hedstrom
e065d26953 Merge pull request #43 from jkhoogland/master
small fixes to squash some compile warnings
2015-08-31 21:09:55 -06:00
Kjell Hedstrom
bc5337e780 Merge pull request #42 from ctapmex/issue40
fix issue 40
2015-08-29 07:14:45 -06:00
Aleksey Dobrunov
7d2741c9a8 fix typo 2015-08-29 15:13:08 +05:00
Jiri Hoogland
73751d2e85 - remove unused "-pthread" flags for clang compilation
- set target_property for rpath handling on OSX
2015-08-28 15:39:06 -04:00
Kjell Hedstrom
671fd01aa1 This is made to NOT compile ... lines that don't compile are sections I need to check out
exhausted stack. kill vs exit.  using libunwind or backtrace but with symoblizer should be tested
and blogged about(?)
2015-08-27 08:02:18 -06:00
Kjell Hedstrom
62c7153ce4 Merge pull request #38 from KjellKod/Improved_Sink_API
Breaking change but a good change:  Cleared up the API  for adding sinks
2015-08-23 16:18:20 -06:00
Kjell Hedstrom
3efcef3505 my own code review I 2015-08-19 10:19:55 -06:00
Kjell Hedstrom
1803498e89 Breaking change but a good change: Cleared up the API for Creating log worker and Adding sinks 2015-08-19 10:08:41 -06:00
Kjell Hedstrom
bc4459d779 Merge pull request #37 from KjellKod/filter
preparation for g3sinks: Filter
2015-08-19 08:51:18 -06:00
Kjell Hedstrom
14a46f4567 Swap is less affective 2015-08-12 07:39:09 -06:00
Kjell Hedstrom
c6a0c28435 removed iostream previously used for temporary visibility 2015-08-12 06:48:55 -06:00
Kjell Hedstrom
8dfe9e0716 Improved copy constructors and assignment operator which is needed now when LOGLEVELS can be made on the fly 2015-08-12 06:43:24 -06:00
Kjell Hedstrom
88fc290d45 Merge pull request #36 from AlphaCluster/build-readme-cleanup
Changing the markdown for build examples
2015-08-06 22:31:51 -06:00
Nicholas Omann
60b3a4c359 Changing the markdown for build examples 2015-08-06 21:40:11 -05:00
Kjell Hedstrom
49aee72faf improved comparison test 2015-08-04 07:44:39 -06:00
Kjell Hedstrom
13cc398f06 comparison operators for level: gtest, std::find, == operator, !=operator 2015-08-04 07:43:38 -06:00
Kjell Hedstrom
b53cd95361 Merge pull request #29 from KjellKod/fixed_definitions
use the genereated_definitions.hpp
2015-07-22 13:33:49 -06:00
Kjell Hedstrom
d09ca7787d use the genereated_definitions.hpp 2015-07-22 13:28:10 -06:00
Kjell Hedstrom
a544f0b193 Merge pull request #24 from AlexandrePTJ/master
Fix path removal for windows
2015-07-22 10:24:29 -06:00
Alexandre Petitjean
a529895444 Update Build.cmake 2015-07-22 16:01:47 +02:00
Alexandre Petitjean
6ff84e092b Fix path removal for windows 2015-07-21 12:21:31 +02:00
Kjell Hedstrom
5c7c289069 Merge pull request #23 from KjellKod/levels
handling the case of DEBUG to DBUG
2015-07-20 08:25:11 -06:00
Kjell Hedstrom
540e9601df handling the case of DEBUG to DBUG 2015-07-20 08:23:49 -06:00
Kjell Hedstrom
056a5483da Merge pull request #22 from KjellKod/levels
improved dynamic Levels
2015-07-20 08:16:55 -06:00
Kjell Hedstrom
d5ad2709a7 removed changes to g3::only_change_at_initialization at shutdown/init.
It is thread unsafe and should be done explicitly (also the threaded 100 threads calling with initialzation + shutdown was handing)... good test
2015-07-20 08:11:57 -06:00
Kjell Hedstrom
786b92a6d1 Another, tiny, breaking change.
Due to popular request I have added the possibility to put in your own custom log levels. Due to performance regards changes to the log levels should ONLY be done
in a single thread context (initialiation) for that reason the namespace
used to "setLogLevel" is named appropriately
i.e. use: g3::only_change_at_initialization::setLogLevel(...)
2015-07-20 08:00:33 -06:00
Kjell Hedstrom
c4f9463b6b Custom levels can be added: So far dynamic on-off does not work 2015-07-20 00:45:41 -06:00
Kjell Hedstrom
010ecc5bc7 Merge pull request #20 from KjellKod/install_improvements
Install improvements
2015-07-19 23:32:36 -06:00
Kjell Hedstrom
b4ffc17344 staying with cmake 2.8 2015-07-19 23:29:36 -06:00
Kjell Hedstrom
b05d8d8fb9 sigh... travis needs semi colons 2015-07-19 23:26:38 -06:00
Kjell Hedstrom
b9c6140e84 cmake fixy 2015-07-19 23:24:35 -06:00
Kjell Hedstrom
755895ce93 Using later version of cmake on travis 2015-07-19 23:22:12 -06:00
Kjell Hedstrom
56bdcfa757 fixing travis 2015-07-19 23:16:29 -06:00
Kjell Hedstrom
7c7012325d Easier to install. continues
1) Breaking change:  g3 namespace replaces g2
2) g2log.hpp remains in src/g2log.hpp... but now all it does is to include the g3log.hpp, etc
3) ALL HEADER FILES ARE IN src/g3log/  while all .cpp and .ipp files are in /src  (exception for g2log.hpp)
   This should make it EASIER for clients to copy/install the header files to the new location.  It greatly simplifies
   rpm and cpackage installationsw
2015-07-19 23:10:56 -06:00
Kjell Hedstrom
7cf42c535c Making it easy for other people to see the formatting style 2015-07-16 01:58:21 -06:00
Kjell Hedstrom
6750efe8fe g2log.hpp is kept as a helper include. It will pull in the most frequent include files
All other are under g3log. Example: #include <g3log/time.hpp> #include <g3log/g3log.hpp> etc
This makes sure that the package manager (to be  used soon) does NOT clutter any /usr/local/include space
instead all the includes will be in /usr/local/include/g3log (or similar)
2015-07-16 01:55:23 -06:00
Kjell Hedstrom
94db9bb4db Updated for removing temporary cmake files with "make clean-cmake-files" 2015-07-16 00:27:17 -06:00
Kjell Hedstrom
78103cb415 Auto generate macro defintions in a file. This way you don't have to re-state them in your library
if no options are given a blank file will be generated
2015-07-13 07:49:44 -06:00
Kjell Hedstrom
3e5da340bd Merge pull request #19 from KjellKod/KjellKod-readme-patch
Update README.markdown
2015-07-06 22:36:52 -06:00
Kjell Hedstrom
07c74bbbc3 Update README.markdown 2015-07-06 22:34:20 -06:00
Kjell Hedstrom
389a7d695c Update README.markdown 2015-07-06 22:32:05 -06:00
Kjell Hedstrom
4f73fb4f7c Update README.markdown 2015-07-06 22:25:45 -06:00
Kjell Hedstrom
e219a5e426 Merge pull request #17 from KjellKod/windows_warnings
remove windows warnings. Thanks to @ctapmex
2015-06-24 14:51:54 -06:00
Kjell Hedstrom
ebcfe9ff06 remove windows warnings. Thanks to @ctapmex 2015-06-24 14:50:46 -06:00
Kjell Hedstrom
ed1cab05b0 Merge pull request #16 from KjellKod/timestamp
Thanks to @Bob Flynn:
2015-06-24 14:35:01 -06:00
Kjell Hedstrom
176fca55a6 Thanks to @Bob Flynn:
Separated the microseconds counter with a space instead of a period.
Also added explanation that the counter is from the initialization
2015-06-24 14:32:31 -06:00