Commit Graph

803 Commits

Author SHA1 Message Date
Fumitoshi Ukai
1b0b08c8dd Merge pull request #10 from jmr/std_vector
LOG_STRING: use std::vector and std::string.
2015-03-27 16:43:58 +09:00
Jesse Rosenstock
162a8ef4ea LOG_STRING: use std::vector and std::string.
Previously, plain vector and string were used.
This assumed that there were "using" directives or
declarations before the macro was used.  This will
not always be the case.
2015-03-26 14:25:14 -04:00
Fumitoshi Ukai
852970d850 Merge pull request #6 from darkwind-mt/master
Adds color output support for tmux terminals
2015-03-26 17:51:44 +09:00
Michael Tanner
66088e4787 Adds color output support for tmux terminals 2015-03-23 10:56:04 +00:00
Fumitoshi Ukai
47ab571f38 Merge pull request #2 from tbennun/master
Fix x64/Debug build on MSVS
2015-03-18 14:54:40 +09:00
Pierre Phaneuf
80942e5ea2 Add the typical Google contributors and authors files.
Also add a CONTRIBUTING.md, that GitHub will link to in the pull request
creation page.
2015-03-16 10:50:32 +00:00
tbennun
7553b4193d Fix x64/Debug build on MSVS 2015-03-13 07:56:59 +02:00
Fumitoshi Ukai
d8cb47f77d Merge pull request #1 from ukai/release_0.3.4
glog: release 0.3.4
2015-03-11 13:02:27 +09:00
Fumitoshi Ukai
5ab077bb8d Fix for "make rpm" and "make deb" 2015-03-10 12:44:30 +09:00
Fumitoshi Ukai
3b0372bd70 glog: release 0.3.4
migrate to https://github.com/google/glog
use autoconf 2.69 / automake 1.14.1
2015-03-09 11:45:07 +09:00
78da3bf8fe Fixes for the latest MSVS.
- ssize_t
Since Windows does not have ssize_t, we need to include BaseTsd.h and
use SSIZE_t instead.

- include algorithm
MSVS 2013 requests developers to include algorithm when they use
std::min.

By yyanagisawa



git-svn-id: https://google-glog.googlecode.com/svn/trunk@143 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-08-19 00:36:29 +00:00
09e8dd6289 Add libc++ support
Similar patch was provided in
    
https://code.google.com/p/google-glog/issues/detail?id=121


git-svn-id: https://google-glog.googlecode.com/svn/trunk@142 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-05 05:20:24 +00:00
a5ffa88413 Build issues in demangle.cc
git-svn-id: https://google-glog.googlecode.com/svn/trunk@141 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-02 01:37:08 +00:00
8367470aa5 Adding a callback mechanism to allow users of google.glog to provide
their own implementation of  OpenObjectFileContainingPcAndGetStartAddress.

GTTF: Make stack trace symbolization code recognize more symbols.
One example is __libc_start_main (easy to check), there may be more.

Include the correct elf header on OpenBSD and Android.

Fix Coverity NO_EFFECT defect. Comparing unsigned greater than or equal zero is always true.



git-svn-id: https://google-glog.googlecode.com/svn/trunk@140 eb4d4688-79bd-11dd-afb4-1d65580434c0
2014-03-01 00:33:41 +00:00
a0073e504b Add StrError and replace posix_strerror_r calls
For now, we do not remove the declaration of posix_strerror_r,
but we might remove it in future.


git-svn-id: https://google-glog.googlecode.com/svn/trunk@139 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-10-31 05:39:43 +00:00
0242c8e94d Fix VC build by adding GOOGLE_GLOG_DLL_DECL
git-svn-id: https://google-glog.googlecode.com/svn/trunk@138 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-10-31 05:36:25 +00:00
a0bf19d0df A style fix for C++11
This patch is given by Nico (thanks!)



git-svn-id: https://google-glog.googlecode.com/svn/trunk@137 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-07-29 06:27:17 +00:00
1518f230c6 Reduce dynamic allocation from 3 to 1 per log message
This patch was contributed in

https://code.google.com/p/google-glog/issues/detail?id=131

by engel. Thanks!


git-svn-id: https://google-glog.googlecode.com/svn/trunk@136 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-05-29 14:10:49 +00:00
478a80caa0 Attempt to improve mingw-w64 support
- Set -Isrc/windows for mingw
- Check existence of sigaction, pread, and pwrite
- Provide alternative implementation of pread and pwrite
- Eliminate symlink code for OS_WINDOWS
- Don't check /proc/self/fd if the OS isn't linux
- Don't use MSVC specific declarations in port.h for mingw



git-svn-id: https://google-glog.googlecode.com/svn/trunk@135 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-18 10:56:53 +00:00
a106e61178 Support unordered_(map|set) by stl_logging
git-svn-id: https://google-glog.googlecode.com/svn/trunk@134 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-18 10:45:46 +00:00
cba9095278 Remove .svn directory from the release archive
packages/deb is a directory and it may contain .svn



git-svn-id: https://google-glog.googlecode.com/svn/trunk@133 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-01 06:31:49 +00:00
0b0b022be1 Release glog 0.3.3
git-svn-id: https://google-glog.googlecode.com/svn/trunk@132 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-01 06:20:46 +00:00
069ee58a09 Fix Mac test failure
We need only the first line from signalhandler.out3


git-svn-id: https://google-glog.googlecode.com/svn/trunk@131 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-02-01 05:46:37 +00:00
e6af5ea5f1 Make sure stderr is not buffered.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@130 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 04:39:54 +00:00
fdc710e355 Add dllimport and dllexport for new symbols
git-svn-id: https://google-glog.googlecode.com/svn/trunk@129 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 03:49:40 +00:00
35ba669307 Revert http://code.google.com/p/google-glog/source/detail?r=127
Casting to (void) was bad because the return value of DCHECK_NOTNULL
cannot be used.



git-svn-id: https://google-glog.googlecode.com/svn/trunk@128 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-31 03:48:24 +00:00
3297f04c13 Remove warning of DCHECK_NOTNULL
http://code.google.com/p/google-glog/issues/detail?id=87


git-svn-id: https://google-glog.googlecode.com/svn/trunk@127 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-25 07:59:25 +00:00
133b40fd55 Document update: how to modify FLAGS_* in glog
http://code.google.com/p/google-glog/issues/detail?id=70



git-svn-id: https://google-glog.googlecode.com/svn/trunk@126 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-25 06:03:56 +00:00
c4c25e85fd Make glog ABI compatible with gflags
The ABI incompatibility is bad when 

- Build glog without gflags (glog package in most distributions doesn't 
  depend on gflags) 
- Use both glog and gflags 


git-svn-id: https://google-glog.googlecode.com/svn/trunk@125 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-25 05:44:43 +00:00
3b59339f08 Follow up for the color log patch
- Rename colorstderr => colorlogtostderr
- Remove duplicated code
- Set colorlogtostderr=0 in the unittest



git-svn-id: https://google-glog.googlecode.com/svn/trunk@124 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-23 05:27:13 +00:00
ff96a5a827 Output logs with colors to stderr
This patch is provided by

http://code.google.com/p/google-glog/issues/detail?id=48

Thanks!



git-svn-id: https://google-glog.googlecode.com/svn/trunk@123 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-23 05:25:56 +00:00
5fc80272da Re-generate logging.h for windows
Thanks Kamil for your report!



git-svn-id: https://google-glog.googlecode.com/svn/trunk@122 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-22 09:12:56 +00:00
74ae299924 Allow users to re-initialize glog
http://code.google.com/p/google-glog/issues/detail?id=83
http://code.google.com/p/google-glog/issues/detail?id=125
http://code.google.com/p/google-glog/issues/detail?id=142



git-svn-id: https://google-glog.googlecode.com/svn/trunk@121 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-10 07:46:20 +00:00
e8327746ef Move LogMessageData from .h to .cc
git-svn-id: https://google-glog.googlecode.com/svn/trunk@120 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-10 07:19:05 +00:00
3aa45ed56e Eliminate use of strstream based on internal changes
http://code.google.com/p/google-glog/issues/detail?id=110


git-svn-id: https://google-glog.googlecode.com/svn/trunk@119 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 16:06:21 +00:00
44c4b29de4 Fix glog/stl_logging for clang
git-svn-id: https://google-glog.googlecode.com/svn/trunk@118 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 13:59:45 +00:00
047426cf97 Run autoreconf on ubuntu precise
git-svn-id: https://google-glog.googlecode.com/svn/trunk@117 eb4d4688-79bd-11dd-afb4-1d65580434c0
2013-01-09 13:26:44 +00:00
96dac4fd02 Fixed files to support FreeBSD amd64 based on patches at:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/glog/files/

Since FreeBSD do not have gettid system call unlikely to MacOSX, I
modified utilities.h not to use that on FreeBSD:
* FreeBSD lacks gettid syscall.
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/syscalls.master?rev=1.276;content-type=text%2Fplain
* MacOSX gettid == 286.
http://www.opensource.apple.com/source/xnu/xnu-1504.3.12/bsd/kern/syscalls.master
   
As for the fix of stacktrace, we use a different approach.
Even in FreeBSD, package gcc44/gcc46 has unwind.h.
As a result, checking unwind.h should be natural solution.

This patch was given by yyanagisawa



git-svn-id: https://google-glog.googlecode.com/svn/trunk@116 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-11-22 12:09:13 +00:00
711fcd27de Don't #undef GLOG_MSVC_*
They are necessary because GLOG_MSVC_* will be expanded at DCHECK



git-svn-id: https://google-glog.googlecode.com/svn/trunk@115 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-17 10:51:15 +00:00
4f6088bc72 Reduce compiler warnings on Windows and MacOSX
DCHECK* causes "warning C4127: conditional expression is constant".

If compiled with -DWIN32_LEAN_AND_MEAN,
port.h: warning C4005: 'WIN32_LEAN_AND_MEAN': macro redefinition.

On MacOSX,
warning: "_END_GOOGLE_NAMESPACE_" redefined
warning: "_START_GOOGLE_NAMESPACE_" redefined
because config.h is included
 from base/commandlineflags.h:51
 from logging.cc:60
and
 from utilities.h:81
 from logging.cc:32
or so.

Contributed by ukai@



git-svn-id: https://google-glog.googlecode.com/svn/trunk@114 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-12 06:37:47 +00:00
7c613d6190 Fix LOG_SYSRESULT
result is expected to be GetLastError() or WSAGetLastError(), so
we have to convert it to HRESULT by HRESULT_FROM_WIN32 for FAILED()
macro.
Use FormatMesssageA (ANSI version). since glog may not work with
Unicode string.

Contributed by ukai@



git-svn-id: https://google-glog.googlecode.com/svn/trunk@113 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-07-03 05:25:54 +00:00
6d42536769 Reduce the number of warnings by VS2010
git-svn-id: https://google-glog.googlecode.com/svn/trunk@112 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-06-13 07:25:19 +00:00
e7712bf068 Compile error fix for QNX
This patch is given in

http://code.google.com/p/google-glog/issues/detail?id=114



git-svn-id: https://google-glog.googlecode.com/svn/trunk@111 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-05-14 07:46:20 +00:00
ad13dc67dd VC11 build fix
http://code.google.com/p/google-glog/issues/detail?id=119



git-svn-id: https://google-glog.googlecode.com/svn/trunk@110 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-05-14 07:43:51 +00:00
475ec9b9c4 Add --disable-rtti
git-svn-id: https://google-glog.googlecode.com/svn/trunk@109 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-02-24 07:28:50 +00:00
7e0a53c87f Release 0.3.2.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@108 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 08:49:31 +00:00
73b0abc989 Remove trivial warnings produced by clang
git-svn-id: https://google-glog.googlecode.com/svn/trunk@107 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 08:41:09 +00:00
cd026f9eab Add exception specification for operator new and operator delete
Unfortunately, clang produces warnings for them



git-svn-id: https://google-glog.googlecode.com/svn/trunk@106 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:50:28 +00:00
8b90f05746 Fix compile failures with clang in stl_logging_unittest.cc
This happens due to the reason I wrote in stl_logging.h.
We don't need utilities.h (which includes logging.h) so we can just
remove it.


git-svn-id: https://google-glog.googlecode.com/svn/trunk@105 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:49:25 +00:00
fe0967b999 Fix the wrong use of sizeof
git-svn-id: https://google-glog.googlecode.com/svn/trunk@104 eb4d4688-79bd-11dd-afb4-1d65580434c0
2012-01-12 07:46:39 +00:00