Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
79 changes: 79 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Docs

# Builds the documentation site of the module from Docs/ with DocFX (docfx.json) and publishes it to GitHub Pages.
# Pull requests and manual runs on other branches only build; the site is deployed from master only.
# Repository setting required once: Settings -> Pages -> Source = "GitHub Actions".

on:
push:
branches: [master]
paths:
- 'Docs/**'
- 'README.md'
- 'docfx.json'
- '.github/workflows/docs.yml'
pull_request:
paths:
- 'Docs/**'
- 'README.md'
- 'docfx.json'
- '.github/workflows/docs.yml'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

env:
DOCFX_VERSION: '2.81.0'
DOTNET_NOLOGO: 'true'
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'

jobs:
build:
name: Build site
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5

# The global.json of a module pins Stellar.Sdk, not the .NET SDK
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.0.x'

- name: Install DocFX
working-directory: ${{ runner.temp }}
run: dotnet tool install docfx --version "$DOCFX_VERSION" --tool-path "$RUNNER_TEMP/docfx"

- name: Build documentation
run: '"$RUNNER_TEMP/docfx/docfx" build docfx.json --warningsAsErrors'

- name: Upload Pages artifact
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
uses: actions/upload-pages-artifact@v5
with:
path: artifacts/docs/site

deploy:
name: Deploy to GitHub Pages
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-latest
concurrency:
group: pages
cancel-in-progress: false
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v5
15 changes: 15 additions & 0 deletions .github/workflows/marks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Marks

# The marks in the comments of the code, checked by the workflow of the core (Docs/Engine/Marks.md there).

on:
push:
branches: [develop, master]
pull_request:

permissions:
contents: read

jobs:
marks:
uses: QuantumDevTeam/StellarEngine-Core/.github/workflows/marks.yml@develop
5 changes: 5 additions & 0 deletions .github/workflows/restrict-master-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request_target:
types: [opened, reopened]

permissions:
contents: read
pull-requests: write
issues: write

jobs:
restrict:
uses: QuantumDevTeam/.github/.github/workflows/restrict-master-prs.yml@master
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Bb]in/
[Oo]bj/
.vs/
.idea/
*.user
# The documentation site, built by docfx
artifacts/
11 changes: 11 additions & 0 deletions Branding/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions Docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Stellar.LoggingSystem

logging system of the engine

A `CoreModule` module of [StellarEngine](https://quantumdevteam.github.io/StellarEngine-Mono/). Its site is https://quantumdevteam.github.io/Stellar.LoggingSystem/, built from the Markdown
files of `Docs/` with DocFX; the whole engine, with every module, is on the [site of the engine](https://quantumdevteam.github.io/StellarEngine-Mono/).

## Using it

Add `Stellar.LoggingSystem` to `Dependencies` of your module or project descriptor, then:

```powershell
stellar modules sync
```

## Settings

In the `Runtime` section of `.stellar.project`, or on the command line (`--stellar:LogPath=logs/game.log`), which wins.
Names in any case. A value that cannot be read is told in the log and left at its default.

| Setting | Default | What it is |
|---|---|---|
| `LogPath` | none, no file | Where the log is also written. A path of the disk, relative to the folder of the application (`logs/game.log`), needs nothing else. `domain://path` goes through the file system of the engine: the lines wait (up to 1024) till somebody publishes `IFileSystem` and mounts the domain |
| `LogLevel` | `Debug` | The least serious level of the console |
| `LogFileLevel` | `Info` | The least serious level of the file |

The file is appended to, and can be read while the engine runs.

## A logger of your own

Derive from `LoggerBase` (or implement `ILogger`, with `ILabeled` for a name), add it to `ILoggerCatalog` when your
module starts and take it out when it stops. The catalog never disposes what it did not make.

## Working on it

```powershell
stellar modules build Stellar.LoggingSystem --tests
```

See [the README](../README.md) for the layout of the module.
7 changes: 7 additions & 0 deletions Docs/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Navigation of the documentation site of the module (DocFX). Paths are relative to this file.
- name: Home
href: index.md
- name: README
href: ../README.md
- name: StellarEngine
href: https://quantumdevteam.github.io/StellarEngine-Mono/
133 changes: 133 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# PolyForm Noncommercial License 1.0.0

<https://polyformproject.org/licenses/noncommercial/1.0.0>

Required Notice: Copyright (c) 2026 QuantumDevTeam (see NOTICE)

## Acceptance

In order to get any license under these terms, you must agree
to them as both strict obligations and conditions to all
your licenses.

## Copyright License

The licensor grants you a copyright license for the
software to do everything you might do with the software
that would otherwise infringe the licensor's copyright
in it for any permitted purpose. However, you may
only distribute the software according to [Distribution
License](#distribution-license) and make changes or new works
based on the software according to [Changes and New Works
License](#changes-and-new-works-license).

## Distribution License

The licensor grants you an additional copyright license
to distribute copies of the software. Your license
to distribute covers distributing the software with
changes and new works permitted by [Changes and New Works
License](#changes-and-new-works-license).

## Notices

You must ensure that anyone who gets a copy of any part of
the software from you also gets a copy of these terms or the
URL for them above, as well as copies of any plain-text lines
beginning with `Required Notice:` that the licensor provided
with the software. For example:

> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)

## Changes and New Works License

The licensor grants you an additional copyright license to
make changes and new works based on the software for any
permitted purpose.

## Patent License

The licensor grants you a patent license for the software that
covers patent claims the licensor can license, or becomes able
to license, that you would infringe by using the software.

## Noncommercial Purposes

Any noncommercial purpose is a permitted purpose.

## Personal Uses

Personal use for research, experiment, and testing for
the benefit of public knowledge, personal study, private
entertainment, hobby projects, amateur pursuits, or religious
observance, without any anticipated commercial application,
is use for a permitted purpose.

## Noncommercial Organizations

Use by any charitable organization, educational institution,
public research organization, public safety or health
organization, environmental protection organization,
or government institution is use for a permitted purpose
regardless of the source of funding or obligations resulting
from the funding.

## Fair Use

You may have "fair use" rights for the software under the
law. These terms do not limit them.

## No Other Rights

These terms do not allow you to sublicense or transfer any of
your licenses to anyone else, or prevent the licensor from
granting licenses to anyone else. These terms do not imply
any other licenses.

## Patent Defense

If you make any written claim that the software infringes or
contributes to infringement of any patent, your patent license
for the software granted under these terms ends immediately. If
your company makes such a claim, your patent license ends
immediately for work on behalf of your company.

## Violations

The first time you are notified in writing that you have
violated any of these terms, or done anything with the software
not covered by your licenses, your licenses can nonetheless
continue if you come into full compliance with these terms,
and take practical steps to correct past violations, within
32 days of receiving notice. Otherwise, all your licenses
end immediately.

## No Liability

***As far as the law allows, the software comes as is, without
any warranty or condition, and the licensor will not be liable
to you for any damages arising out of these terms or the use
or nature of the software, under any kind of legal claim.***

## Definitions

The **licensor** is the individual or entity offering these
terms, and the **software** is the software the licensor makes
available under these terms.

**You** refers to the individual or entity agreeing to these
terms.

**Your company** is any legal entity, sole proprietorship,
or other kind of organization that you work for, plus all
organizations that have control over, are under the control of,
or are under common control with that organization. **Control**
means ownership of substantially all the assets of an entity,
or the power to direct its management and policies by vote,
contract, or otherwise. Control can be direct or indirect.

**Your licenses** are all the licenses granted to you for the
software under these terms.

**Use** means anything you do with the software requiring one
of your licenses.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Stellar.LoggingSystem

logging system of the engine

| | |
|---|---|
| Level | `CoreModule` |
| Descriptor | `Stellar.LoggingSystem.stellar.module` |

## Layout

```
Stellar.LoggingSystem/
├── Stellar.LoggingSystem.stellar.module what the engine knows about the module
├── src/Managed/Stellar.LoggingSystem/ the C# project
├── src/Native/ native projects, if any: built first, their DLLs travel with the assembly
├── tests/ test projects
├── Branding/Logo.svg the icon of the module: a placeholder, replace it with your own
└── Docs/ the documentation site of the module (docfx.json, published by .github/workflows/docs.yml)
```

## Working on it

```bash
stellar modules build Stellar.LoggingSystem --tests
```

A dependency on another module goes into `Dependencies` of the descriptor, then `stellar modules sync`: the
project gets the reference by itself.
8 changes: 8 additions & 0 deletions Stellar.LoggingSystem.stellar.module
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://quantumdevteam.github.io/StellarEngine-Core/schemas/stellar.module.schema.json",
"Id": "Stellar.LoggingSystem",
"Version": "0.9.0",
"Level": "CoreModule",
"Description": "logging system of the engine",
"Dependencies": []
}
Loading