Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #59283
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: very simple editor for HUGE text files (500-1000 MB of plain text) |
| Date | 2019-10-09 07:01 +0200 |
| Message-ID | <h057tvF4u7uU1@mid.individual.net> (permalink) |
| References | <qnigc8$flq$1@dont-email.me> <h04017Frk1gU1@mid.individual.net> <qnii3l$pss$1@dont-email.me> <h047jtFt722U1@mid.individual.net> <qniua6$9vj$1@dont-email.me> |
On 08/10/2019 23.15, Soviet_Mario wrote: > Il 08/10/19 21:50, J.O. Aho ha scritto: >> On 08/10/2019 19.47, Soviet_Mario wrote: >>> Il 08/10/19 19:40, J.O. Aho ha scritto: >>>> On 08/10/2019 19.17, Soviet_Mario wrote: >> >>>>> I'm generating text log files upwards of 300-400 MB >>>> >>>> A bit OT, but why not have a more frequent log rotation, so that the >>>> files won't get too large for you. >>> >>> aehm ... they are born in one shot as large :\ :\ (I'm in debug phase >>> ... hopably in a future once the programs works reliably, much >>> logging could be stripped in some lighter form) :\ >> >> If you have a more frequent log rotation, then you get more files but >> each file is smaller. If you use something like nlog, log4j, log4cpp >> and so on, it's quite simple to set a max size on the log file, each >> time it the log file will become larger than the limit, a new log file >> is created and the new data is written to it. Also you can log things >> to different files, for example one file with debug information >> another with error messages and so on. > > oh sorry i feel very dumb I completely misunderstood. > Yes, splitting could be easily achieved > > >> >> If you are using logger, much depends on the log daemon you have >> installed, but most have similar capabilities as the above ones. > > I don't know what it is man logger > I open a file and write actions of the programs in text form (i also > just discovered one bug that maybe was very heavy for LbO : i used > binary write and asciiZ strings instead of newline terminated ones). This is resource heavy way and your program will wait till the write action has ben done. >> I would recommend you to skip trying to make your own log >> functionality, it will be most likely a resource hog. > > well within a program written in high level language writing text to a > file is almost as natural as breathing :\ That's what a lot people thinks, and one reason why you should avoid home brewed logging, you need to have logging running in a separate thread, so it won't block your application while writing to disk and you want to do the with limited disk writes and if you ignore a type of logging you want as little as possible done. nlog/log4XXX are projects who been dedicated for logging for so many years that they have managed to solve the problems and it's less work to get nlog to work than write to a file, so not much point in doing the wrong way. > but I'm using gambas again, not C/C++ (and I'm not porting it as it is > disk-intensive and I'd get no improvement stat-ing files) Then use logger, "man logger" and config your rsyslog/syslog-ng/syslogd or what your system uses and set up how you want to log rotate in your logrotate configuration. -- //Aho
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-08 11:23 -0600
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-08 19:40 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:47 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Lyle H. Gray" <lylefitzw@no.spam.gmail.com.invalid> - 2019-10-08 13:41 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-08 21:01 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Chris Elvidge <chris@mshome.net> - 2019-10-10 09:59 +0100
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-08 21:50 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 23:15 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Grant Taylor <gtaylor@tnetconsulting.net> - 2019-10-08 20:20 -0600
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 06:09 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-10 19:24 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-09 07:01 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 14:14 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "J.O. Aho" <user@example.net> - 2019-10-09 19:28 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 20:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Melzzzzz <Melzzzzz@zzzzz.com> - 2019-10-09 06:07 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-09 14:17 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-09 14:52 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 08:49 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-08 19:43 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 19:47 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Lyle H. Gray" <lylefitzw@no.spam.gmail.com.invalid> - 2019-10-08 13:39 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-09 22:23 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-09 17:42 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) gazelle@shell.xmission.com (Kenny McCormack) - 2019-10-10 00:42 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 08:42 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-10 09:21 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 12:09 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 12:14 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 15:07 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Chris Elvidge <chris@mshome.net> - 2019-10-10 14:17 +0100
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 16:06 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 21:42 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 13:17 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-10 20:54 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-10 19:01 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-11 08:53 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:08 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:06 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 10:46 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-11 11:17 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 17:32 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:12 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 08:34 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:19 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 11:55 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Mike Easter <MikeE@ster.invalid> - 2019-10-10 11:56 -0700
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 14:38 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:22 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:18 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:57 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:04 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:23 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:29 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Jasen Betts <jasen@xnet.co.nz> - 2019-10-11 03:48 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:28 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 11:56 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-11 10:12 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 13:25 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-11 11:52 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 11:55 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "F. Russell" <frussell@random.info> - 2019-10-11 12:19 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 12:21 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "F. Russell" <frussell@random.info> - 2019-10-11 12:43 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 13:15 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:27 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:51 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) John Hasler <jhasler@newsguy.com> - 2019-10-13 19:43 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-11 10:11 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 19:45 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 19:15 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:14 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:08 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-12 10:07 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-12 14:29 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-12 22:51 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:53 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-13 20:49 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) William Unruh <unruh@invalid.ca> - 2019-10-10 19:07 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 03:01 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 08:38 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 02:59 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-11 11:30 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-11 11:02 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:34 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:12 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-13 15:06 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) RonB <ronb02NOSPAM@gmail.com> - 2019-10-11 21:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 10:05 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:47 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-13 19:58 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-08 19:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-08 23:19 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) F Russell <fr@random.info> - 2019-10-08 21:31 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Dan Purgert <dan@djph.net> - 2019-10-08 23:11 +0000
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-09 22:27 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-09 23:37 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-10 15:09 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-10 13:20 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Aragorn <thorongil@telenet.be> - 2019-10-11 08:57 +0200
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Cybe R. Wizard" <cybe_r_wizard@WizardsTower.invalid> - 2019-10-11 09:51 -0500
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Bud Frede <frede@mouse-potato.com> - 2019-10-13 09:35 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) Paul <nospam@needed.invalid> - 2019-10-10 21:21 -0400
Re: very simple editor for HUGE text files (500-1000 MB of plain text) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-11 03:47 +0200
csiph-web