Hi Mattias, hi List,

I am running this on Linux... and I solved the problem (with a workaround).

What confused me the whole time was that there were three files for the same
purpose in the conf directory: log4j.properties, logback.xml,
logging.properties (the first two aren't used - I am using 1.3 advanced -
could they go away?). To make matters worse, even neo4j-wrapper.conf has
some logging related settings. And then there are 'settings' in the neo4j
executable about whether the startup should wait for success messages from
the server.

I am pretty sure this line from logging.properties wasn't there in 1.3.M5,
because I didn't have a whole lot of console logging before:
  handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler
When I switched it to
  handlers=java.util.logging.FileHandler
most of the logging ouput in the console went away, but the process for some
reason still held on to the console. E.g., when I do a 'neo4j dump' the
result is shown in the original console. I have not yet been able to find
out, where I can make the server fully detach.

The workaround for me is to explicitly pipe the neo4j command's output to a
file.

Cheers
Stephan


PS: here is my logging.properties:

# Global logging properties.
# ------------------------------------------
# The set of handlers to be loaded upon startup.
# Comma-separated list of class names.
# (? LogManager docs say no comma here, but JDK example has comma.)
handlers=java.util.logging.FileHandler

# Default global logging level.
# Loggers and Handlers may override this level
.level=INFO

# Loggers
# ------------------------------------------
# Loggers are usually attached to packages.
# Here, the level for each package is specified.
# The global level is used by default, so levels
# specified here simply act as an override.
org.neo4j.server.level=INFO

# Handlers
# -----------------------------------------

# --- ConsoleHandler ---
# Override of global logging level
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.ConsoleHandler.filter=org.neo4j.server.logging.NeoLogFilter

# --- FileHandler ---
# Override of global logging level
java.util.logging.FileHandler.level=ALL

# Naming style for the output file:
# (The output file is placed in the directory
# defined by the "user.home" System property.)
java.util.logging.FileHandler.pattern=data/log/neo4j.%u.log

# Limiting size of output file in bytes:
java.util.logging.FileHandler.limit=50000

# Number of output files to cycle through, by appending an
# integer to the base file name:
java.util.logging.FileHandler.count=1

# Style of output (Simple or XML):
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter




On Tue, Apr 19, 2011 at 03:13, Mattias Persson <matt...@neotechnology.com>wrote:

> Are you running this on Windows? Because that's the expected behaviour
> on that OS. What you really want to do is to install the service and
> then you can start/stop it as you'd expect. Try
>
>   bin\Neo4j install
>
> and then you can do
>
>   bin\Neo4j start
>
> 2011/4/19 Stephan Hagemann <stephan.hagem...@googlemail.com>:
> > Hello group,
> >
> > I just realized that since upgrading to Neo4j 1.3 my deployment is
> broken.
> > It seems to be due to the fact that when starting up, the server does not
> > return to a prompt (I noticed this locally also - I need to press enter
> to
> > get the prompt). Vlad (the deployment script) thus probably assumes that
> the
> > startup is not yet finished. I have played with the startup options in
> the
> > neo4j executable, but to no avail. Is anyone else experiencing this or
> has
> > some ideas?
> >
> > Thanks!
> > Stephan
> > _______________________________________________
> > Neo4j mailing list
> > User@lists.neo4j.org
> > https://lists.neo4j.org/mailman/listinfo/user
> >
>
>
>
> --
> Mattias Persson, [matt...@neotechnology.com]
> Hacker, Neo Technology
> www.neotechnology.com
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to