Commit Graph

38 Commits

Author SHA1 Message Date
Anatoly Galiulin
0874c649e9 Fix console logger issue; fixes #5546 (#5547) 2017-03-16 20:25:53 +01:00
Ruslan Mustakov
2096d399b1 Explicitly mark log() method as gcsafe 2017-02-27 16:40:43 +07:00
Federico Ceratto
469a7d258c Add warning about log flushing. Related to #3269 (#5424) 2017-02-24 15:58:02 +01:00
Dmitry Polienko
2c46fdd0ab Add newFileLogger overload accepting file descriptor 2016-11-15 12:13:05 +07:00
Yuriy Glukhov
a994f142b5 Enabled logging tests for js 2016-09-03 22:46:10 +03:00
Yuriy Glukhov
c43a7f3980 Logging compatible with js 2016-09-03 21:11:10 +03:00
Andreas Rumpf
0834cd63d9 prepare Nim codebase for upcoming parser changes 2016-07-15 12:56:03 +02:00
niv
5da7f28990 pure/logging: add notice level, suggest usecases 2016-05-01 12:51:36 +02:00
Bruce Doan
3b0d8fbea4 respect global log filter level 2015-11-28 16:41:07 +07:00
Araq
c7a3079123 logging.nim: expose underlying 'file' object; errors and fatals flush the buffer; refs #3270 2015-10-12 21:08:44 +02:00
Federico Ceratto
08ec0ce071 Add substituteLog docs 2015-10-09 23:26:22 +01:00
Federico Ceratto
6823a60b23 Export substituteLog
Allow Nim users to create their own loggers
2015-10-09 18:34:58 +01:00
patrick dw
15e7fe787a renamed writeln to writeLine in lib 2015-06-19 01:02:22 -05:00
Sergey Avseyev
0fe54a5e14 Fix logger formatting
Motivation
----------
Current implementation does not allow to specify any formatting. It
even cannot output log level, because `writeln()` accepts
`varags[string]` and silently ignores everything before last argument.

Modification
------------
Perform formatting in the single place during substitution. Make log
level optional as all other substitution variables. Also make verbose
logging more informative and parseable.

Result
------
Correct handling formatting and substitutions. Machine-friendly default
output of verbose logger.
2015-06-13 14:41:08 +03:00
Dominik Picheta
88e849078f Merge pull request #2830 from yglukhov/logging-no-format
Removed formatting from logging.
2015-06-04 11:43:49 +01:00
x2f
51d284ce84 Documented bufSize param in logging.nim
Documented bufSize param in logging.nim to complete the previous change
that added a bufSize parameter to file based logger constructors.
2015-06-01 21:52:26 -04:00
x2f
3f78f75483 Expose bufSize parameter for file-based loggers
newFileLogger and newRollingFileLogger have a new bufSize parameter that
is used in open(). The default value -1 has the same behavior as before.
Use 0 for unbuffered output to log file.
2015-05-31 21:06:23 -04:00
yglukhov
e65ccfb8f5 Removed formatting from logging. 2015-05-28 14:48:53 +03:00
Frank Fischer
749e808e1e logging: make fmtStr public to be used in user defined loggers 2015-05-11 23:29:51 +02:00
Oleh Prypin
32109a7867 Don't run non-test code when defined(testing) 2015-04-21 14:37:29 +03:00
def
64903e7050 Use ^ instead of - in slices 2015-03-28 00:38:15 +01:00
teroz
8132723317 fixed log*(logger: RollingFileLogger, level: Level,
frmt: string, args: varargs[string, ])
2015-03-13 12:05:02 +02:00
Federico Ceratto
657dca5c3b Fix typos 2015-02-15 16:20:32 +00:00
Fabio Cevasco
99b14c8d8d newRollingFileLogger - fmtStr is always set to defaultFmtStr 2015-02-06 22:40:21 +01:00
Dominik Picheta
defaf5d400 Logging module is now thread-safe. 2015-01-25 17:02:37 +00:00
Guillaume Gelin
3119fe087d Happy new year! 2015-01-06 15:26:33 +01:00
Araq
a9a5766c66 docgen should work again 2014-10-05 03:06:19 +02:00
Araq
42f5a838a3 more modules updated 2014-08-28 02:06:11 +02:00
Araq
11b6958755 big rename 2014-08-27 23:42:51 +02:00
Dominik Picheta
69bc077937 Fixes docgen for logging module. 2014-02-02 01:01:12 +00:00
Dominik Picheta
9344e9fbf7 Finished logging module. 2014-01-27 18:20:08 +00:00
Araq
5c94a9e1ae tests are green again 2011-06-28 01:31:53 +02:00
Araq
4d5c3ebd46 little repo cleanup 2011-05-02 00:01:50 +02:00
Araq
ed887e67e9 bugfix: times.epochTime 2011-04-25 20:13:57 +02:00
Araq
fa111b9067 cleanup: E_Base should not be used for inheriting exceptions; documentation generator generates dependencies section 2011-01-15 23:57:19 +01:00
Andreas Rumpf
40ea1d0330 fixed pango/pangoutils new wrappers 2010-02-26 01:26:16 +01:00
rumpf_a@web.de
40a5d6c3b9 continued work on html/xmlparser 2010-02-14 00:29:35 +01:00
rumpf_a@web.de
a58a2f3823 better subscript overloading 2010-01-03 12:31:21 +01:00