Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "log"
- "log/syslog"
- "fmt"
- "strconv"
- "strings"
- )
- type logWriter struct {
- }
- func (writer logWriter) Write(input string) (string) {
- var lines string
- for _, line := range strings.Split(input, "\n") {
- lines += " __test__ " + string(line) + "\n"
- }
- return lines
- }
- func main() {
- con, err := syslog.Dial("tcp", "logs.xxx:514", syslog.LOG_INFO, "gologs-generator")
- if err != nil {
- log.Fatal(err)
- }
- s := `
- test messages
- “The one thing which is of moment to Marx, is to find the law of the phenomena
- with whose investigation he is concerned; and not only is that law of moment to
- him, which governs these phenomena, in so far as they have a definite form and
- mutual connexion within a given historical period. Of still greater moment to him
- is the law of their variation, of their development, i.e., of their transition from one
- form into another, from one series of connexions into a different one. This law
- once discovered, he investigates in detail the effects in which it manifests itself in
- social life. Consequently, Marx only troubles himself about one thing: to show, by
- rigid scientific investigation, the necessity of successive determinate orders of
- social conditions, and to establish, as impartially as possible, the facts that serve
- him for fundamental starting-points. For this it is quite enough, if he proves, at the
- same time, both the necessity of the present order of things, and the necessity of
- another order into which the first must inevitably pass over; and this all the same,
- whether men believe or do not believe it, whether they are conscious or
- unconscious of it. Marx treats the social movement as a process of natural history,
- governed by laws not only independent of human will, consciousness and
- intelligence, but rather, on the contrary, determining that will, consciousness and
- intelligence. ... If in the history of civilisation the conscious element plays a part
- so subordinate, then it is self-evident that a critical inquiry whose subject-matter is
- civilisation, can, less than anything else, have for its basis any form of, or any
- result of, consciousness. That is to say, that not the idea, but the material
- phenomenon alone can serve as its starting-point. Such an inquiry will confine
- itself to the confrontation and the comparison of a fact, not with ideas, but with
- another fact. For this inquiry, the one thing of moment is, that both facts be
- investigated as accurately as possible, and that they actually form, each with
- respect to the other, different momenta of an evolution; but most important of all
- is the rigid analysis of the series of successions, of the sequences and
- concatenations in which the different stages of such an evolution present
- 14 Afterword to the Second German Edition (1873)
- themselves. But it will be said, the general laws of economic life are one and the
- same, no matter whether they are applied to the present or the past. This Marx
- directly denies. According to him, such abstract laws do not exist. On the
- contrary, in his opinion every historical period has laws of its own. ... As soon as
- society has outlived a given period of development, and is passing over from one
- given stage to another, it begins to be subject also to other laws. In a word,
- economic life offers us a phenomenon analogous to the history of evolution in
- other branches of biology. The old economists misunderstood the nature of
- economic laws when they likened them to the laws of physics and chemistry. A
- more thorough analysis of phenomena shows that social organisms differ among
- themselves as fundamentally as plants or animals. Nay, one and the same
- phenomenon falls under quite different laws in consequence of the different
- structure of those organisms as a whole, of the variations of their individual
- organs, of the different conditions in which those organs function, &c. Marx, e.g.,
- denies that the law of population is the same at all times and in all places. He
- asserts, on the contrary, that every stage of development has its own law of
- population. ... With the varying degree of development of productive power,
- social conditions and the laws governing them vary too. Whilst Marx sets himself
- the task of following and explaining from this point of view the economic system
- established by the sway of capital, he is only formulating, in a strictly scientific
- manner, the aim that every accurate investigation into economic life must have.
- The scientific value of such an inquiry lies in the disclosing of the special laws
- that regulate the origin, existence, development, death of a given social organism
- and its replacement by another and higher one. And it is this value that, in point of
- fact, Marx’s book has.”`
- k := 0
- for {
- str := strconv.Itoa(k)
- str = str + " " + s
- a := logWriter{}
- b := a.Write(str)
- fmt.Fprintf(con, string(b))
- k = k+ 1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement