Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from NodeJS/Gitbook back to Ruby/Jekyll, using latest Ruby #315

Merged
merged 42 commits into from
May 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
173148c
Revert "This closes #222"
ahgittin Sep 4, 2018
73f2627
ignore stuff from gitbook
ahgittin Sep 4, 2018
c26c8b9
Merge commit '5d11e405' into release-5.0-reverted-222
ahgittin Sep 4, 2018
22ef529
Merge commit 'ba27cf1b' into release-5.0-reverted-222
ahgittin Sep 4, 2018
90ef120
Revert "Merge commit 'ba27cf1b' into release-5.0-reverted-222"
ahgittin Sep 4, 2018
d1efaf7
Merge commit 'ba01df1a' into release-5.0-reverted-222
ahgittin Sep 4, 2018
b40c7ed
Merge commit '68ec56c3' into release-5.0-reverted-222
ahgittin Sep 4, 2018
f970695
Merge commit '3772c215' into release-5.0-reverted-222
ahgittin Sep 4, 2018
2698dbc
Merge commit '9d9028de' into release-5.0-reverted-222
ahgittin Sep 4, 2018
7d808f6
Merge commit '40c59c6c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
15afba3
Merge commit '892400e4' into release-5.0-reverted-222
ahgittin Sep 4, 2018
b726b16
Merge commit '7402753b' into release-5.0-reverted-222
ahgittin Sep 4, 2018
42f4eba
Merge commit 'cd6242aa' into release-5.0-reverted-222
ahgittin Sep 4, 2018
499186d
Merge commit '62cf36a7' into release-5.0-reverted-222
ahgittin Sep 4, 2018
1f518ac
Merge commit '6c4d98ed' into release-5.0-reverted-222
ahgittin Sep 4, 2018
c28417f
Merge commit 'd00c98a7' into release-5.0-reverted-222
ahgittin Sep 4, 2018
a75819e
Merge commit '2c20b30f' into release-5.0-reverted-222
ahgittin Sep 4, 2018
d4f7185
Merge commit '5b78602c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
cf28bf4
Merge commit '2f2ed97c' into release-5.0-reverted-222
ahgittin Sep 4, 2018
a0314df
Merge commit '1a922025' into release-5.0-reverted-222
ahgittin Sep 4, 2018
d616fbf
Merge remote-tracking branch 'origin/latest-upstream' into release-5.…
ahgittin Sep 4, 2018
a7dbdc2
Merge branch 'master' of github.com:apache/brooklyn-docs
nakomis Feb 5, 2019
c08d9b8
Merge apache-brooklyn/master as at commit c0b4ab45
richardcloudsoft Feb 25, 2021
dae7d77
Merge apache-brooklyn/master as at commit 42aa8274
richardcloudsoft Feb 25, 2021
1e0f1be
Merge apache-brooklyn/master as at commit f38fb8bb
richardcloudsoft Feb 25, 2021
93fa774
Merge apache-brooklyn/master as at commit edc13bd6
richardcloudsoft Feb 25, 2021
a6c7aaf
Merge apache-brooklyn/master as at commit 5237ea65
richardcloudsoft Feb 25, 2021
06230ce
Merge apache-brooklyn/master as at commit 6b410121
richardcloudsoft Feb 25, 2021
28a107a
Merge apache-brooklyn/master as at commit 84156e39
richardcloudsoft Feb 26, 2021
a116321
Resolve issues from merge
richardcloudsoft Mar 12, 2021
f8243c7
Merge branch 'master' into ruby-3
ahgittin May 20, 2021
f2f2f61
updating to latest ruby - 3.0.1 - ruby installs but doesn't yet run
ahgittin May 20, 2021
18c08d2
making new jekyll run - it needs a theme installed
ahgittin May 20, 2021
199567d
add webrick gem - needed to serve
ahgittin May 20, 2021
9772a69
remove package.json stuff - leftover from gitbook
ahgittin May 20, 2021
0eda085
fix some paths from gitbook
ahgittin May 20, 2021
484143d
restore title of available / off-the-shelf policies
ahgittin May 20, 2021
ce81908
fix various jekyll run problems
ahgittin May 20, 2021
8cbdb82
apply similar liquid cache workaround for page
ahgittin May 20, 2021
8c3b55e
avoid use of assign tag in liquid
ahgittin May 20, 2021
0b6a90c
fix instructions
ahgittin May 20, 2021
9b13e52
add a few dangling pages to the tree
ahgittin May 21, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge apache-brooklyn/master as at commit c0b4ab4
  • Loading branch information
richardcloudsoft committed Feb 25, 2021
commit c08d9b8ec5b534bdd61f2c02374cc5c81ff428e7
4 changes: 2 additions & 2 deletions guide/dev/env/maven-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ By default, only tarball and zip packages for `brooklyn-dist` will be built. You
Alternatively, you can build everything by using the `release` profile:

{% highlight bash %}
mvn clean install -Dno-go-client -Dno-rpm`
mvn clean install -Prelease
{% endhighlight %}

Other tips:
Expand All @@ -44,7 +44,7 @@ Other tips:
* Run ``-PIntegration`` to run integration tests, or ``-PLive`` to run live tests
([tests described here](../code/tests.html))

* You may need to install ``rpm`` package to build RPM packages: ``brew install rpm`` for Mac OS, ``apt-get install rpm`` for Ubuntu, ``yum install rpm`` for Centos/RHEL.
* If building the `rpm` package, you can install rpm tools with: `brew install rpm` for Mac OS, `apt-get install rpm` for Ubuntu, `yum install rpm` for Centos/RHEL.
On Mac OS you may also need to set `%_tmppath /tmp` in `~/.rpmmacros`.

* If building the `deb` package, you can install deb tools with: `brew install dpkg` for Mac OS, `apt-get install deb` for Ubuntu, `yum install deb` for Centos/RHEL.
Expand Down
48 changes: 46 additions & 2 deletions guide/dev/tips/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,56 @@ log:get/set - Show / set the currently configure
log:tail - As display but will show continuously

log:exception-display - Display the last exception

#### Bundles

You can capture logs from a specific bundle or set of bundles and e.g. write that to a different file.

log4j.appender.sift=org.apache.log4j.sift.MDCSiftingAppender
log4j.appender.sift.key=myBundle
log4j.appender.sift.default=karaf
log4j.appender.sift.appender=org.apache.log4j.FileAppender
log4j.appender.sift.appender.layout=org.apache.log4j.PatternLayout
log4j.appender.sift.appender.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %m%n
log4j.appender.sift.appender.file=${karaf.data}/log/mybundle.debug.log
log4j.appender.sift.appender.append=true

For a detailed reference to the sift appender see [Karaf Advanced configuration](https://karaf.apache.org/manual/latest/#_advanced_configuration)

### Classic - non-OSGI based Apache Brooklyn

To use:

* **Users**:
If using a brooklyn binary installation, simply edit the ``logback.xml``
or ``logback-custom.xml`` supplied in the archive, sometimes in a ``conf/``
directory.

* **Developers**:
When setting up a new project, if you want logging it is recommended to include
the ``brooklyn-logback-xml`` project as an *optional* and *provided* maven dependency,
and then to put custom logging configuration in either ``logback-custom.xml`` or ``logback-main.xml``,
as described below.


#### Customizing Your Logging

The project ``brooklyn-logback-xml`` supplies a ``logback.xml`` configuration,
with a mechanism which allows it to be easily customized, consumed, and overridden.
You may wish to include this as an *optional* dependency so that it is not forced
upon downstream projects. This ``logback.xml`` file supplied contains just one instruction,
to include ``logback-main.xml``, and that file in turn includes:

* ``logback-custom.xml``
* ``brooklyn/logback-appender-file.xml``
* ``brooklyn/logback-appender-stdout.xml``
* ``brooklyn/logback-logger-excludes.xml``
* ``brooklyn/logback-debug.xml``

For the most common customizations, simply create a ``logback-custom.xml`` on your classpath
(ensuring it is loaded *before* brooklyn classes in classpath ordering in the pom)
and supply your customizations there:

{% highlight xml %}
<included>
<!-- filename to log to -->
Expand Down Expand Up @@ -103,7 +148,6 @@ With this mechanism, you can include ``logback-custom.xml`` and/or other files u
``src/main/resources/`` of a project, as described above (for instance to include custom
logging categories and define the log file name) and it should get picked up,
both in the IDE and in the assembly.


#### Tests

Expand Down
11 changes: 10 additions & 1 deletion guide/ops/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ some other problem has occurred which the user is expected to attend to

Loggers follow the ``package.ClassName`` naming standard.

The default logging is to write INFO+ messages to `brooklyn.info.log`,
and DEBUG+ to `brooklyn.debug.log`. Each is a rolling log file,
where the past 10 files will be kept. INFO level, and above, messages
will be logged to the karaf console. Use the `log:` commands in the
karaf client, e.g. `log:tail`, to read these messages.


## Using Logback through OSGi Pax Logging

Expand All @@ -24,7 +30,6 @@ In the OSGi based Apache Brooklyn logging is configured from ops4j pax logging.
See: [Logging - OSGi based Apache Brooklyn](../dev/tips/logging.html#osgi-based-apache-brooklyn) <br/>
[https://ops4j1.jira.com/wiki/display/paxlogging/Configuration](https://ops4j1.jira.com/wiki/display/paxlogging/Configuration)


## Standard Configuration

A `org.ops4j.pax.logging.cfg` file is included in the `etc/` directly of the Brooklyn distro;
Expand All @@ -45,6 +50,8 @@ and create a file `logback-debug.xml` based on the
[brooklyn/logback-debug.xml]({{ site.brooklyn.url.git }}/logging/logback-includes/src/main/resources/brooklyn/logback-debug.xml)
from that project.

A full explanation of logging in karaf is available [here](https://karaf.apache.org/manual/latest/#_log).


## Log File Backup

Expand Down Expand Up @@ -78,3 +85,5 @@ The following resources may be useful when configuring logging:
* The [logback-includes]({{ site.brooklyn.url.git }}/usage/logback-includes) project
* [Brooklyn Developer Guide]({{ site.path.guide }}/dev/tips/logging.html) logging tips
* The [Logback Project](http://logback.qos.ch/) home page
* [Brooklyn Developer Guide]({{book.path.docs}}/dev/tips/logging.md) logging tips
* [OPS4J Pax Logging](https://ops4j1.jira.com/wiki/display/paxlogging/Configuration)
You are viewing a condensed version of this merge commit. You can view the full changes here.