LogoLogo
  • Introduction
    • 👋Overview
    • 🤷Target Audience
    • ✨Features
  • Getting started
    • đŸ–Ĩī¸System Requirements
    • đŸ“ĻInstallation
    • âš™ī¸Configuration
    • 🔧Setup Routine
  • Fundementals
    • 🎎Roles
    • 🌏Countries and time zones
    • â™ģī¸Scheduletask concept
    • 💰Payment Service Provider
    • âœī¸Administration
      • đŸ”ĩSales
        • đŸ‘ĨCustomers
        • đŸ“ĨInvoices
        • 📋Plans
        • 🧊Modules
      • đŸŸĸSystem
        • đŸŽ›ī¸System settings
        • â›“ī¸API Settings
        • 🌐Languages
        • đŸĒ™Currencies
        • đŸŗī¸Countries
        • 📂Mappings
        • đŸ’ŦTranslations
        • đŸĒ§Widgets
    • đŸ–ąī¸User guide
      • 🔐Customer rights
      • 🔗Customer Navigation
      • 📃Edit profile
      • 🔑Reset password
      • 🏨Edit company
      • ⚡Manage users
      • 👔Manage tenants
      • 📨View invoices
      • 💸Add payment method
      • đŸĒ§Manage plans
      • đŸ“ĻManage modules
      • 🔔Notifications
  • Development
    • đŸ› ī¸Local development
    • 📂Folder structure
      • đŸ—„ī¸Application.cfc
    • 💡Develop with saaster
      • 🎇General services
        • đŸ’ŧMappings and rigths management
        • â†Šī¸Redirects
        • 👤Customer specific sessions
        • ã€Ŋī¸Global variable "getCustomerData"
      • 🌐Global functions
        • âš™ī¸getTrans()
        • âš™ī¸getAlert()
        • âš™ī¸logWrite()
        • âš™ī¸getTime()
      • 🧊Developing the main application
      • đŸ“ĻDeveloping modules
  • API
    • âš’ī¸API: Get started
    • 📂Resources
      • 📄authenticate
      • 📄getCurrentModules
      • 📄getCurrentPlan
      • 📄getPlanFeatureSetting
Powered by GitBook
On this page
  1. Development
  2. Develop with saaster
  3. Global functions

logWrite()

Global function logWrite()

Almost everything in saaster is logged. With this function you can also log your own applications.

The word combination logWirte may sound illogical at first; it would be better to use the name writeLog. The problem is, however, that the word combination writeLog is used directly by Lucee, which is why we simply wrote logWrite.

The function creates a text file in the folder "logs", separated with further folders, which are provided with the date (yyyy-mm). Within the respective folder, the text file is again named with today's date (day). There is a new text file for each day.

Example 1: /logs/2022-12/05.log Example 2: /logs/2023-02/13.log

name

the name of the given function to log

severity

"INFORMATION", "WARNING", "ERROR", "FATAL"

message

the given message such as an error message

sendMail

whether we should send an email to the administrator

PreviousgetAlert()NextgetTime()

Last updated 2 years ago

💡
🌐
âš™ī¸